Python 3.12 broke our import of distutils and setup.py dies
We upgraded the base image to python:3.12-slim and our build fails with ModuleNotFoundError: No module named 'distutils'. The setup.py imports from distutils.core import setup and has for years. I know distutils is gone in 3.12 but what's the actual minimal fix? We don't want to migrate the whole build to pyproject right now, just unblock the deploy. Deadline is tomorrow if that matters.
4 replies