batou icon indicating copy to clipboard operation
batou copied to clipboard

Python 3.12 support

Open wosc opened this issue 2 years ago • 0 comments

So far, I've come across two separate points in this regard, both relating to the removal of distutils/setuptools from the stdlib:

You now need to install setuptools explicitly into the venv, because it does not happen by default anymore. This has the added complication that pip freeze on previous Python versions does not include setuptools, so appenv-update-lockfile does not put it in the requirements.lock -- which probably made sense previously, since setuptools was "managed by venv", but now it isn't anymore. (My workaround is adding it to the lockfile manually.)

The "are we on a lobotomized debian python without pip" sanity check now always fails, because it uses import distutils as part of its detection. I don't know what the updated version of this should look like.

wosc avatar Nov 15 '23 07:11 wosc