Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.12 support #402

Open
wosc opened this issue Nov 15, 2023 · 0 comments · May be fixed by #458
Open

Python 3.12 support #402

wosc opened this issue Nov 15, 2023 · 0 comments · May be fixed by #458
Milestone

Comments

@wosc
Copy link
Collaborator

wosc commented Nov 15, 2023

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 added a commit to wosc/pharos-deployment that referenced this issue Nov 15, 2023
Our bootstrap instruction already include installing python-venv which
takes care of the situation that this workaround was guarding against.

See also flyingcircusio/batou#402
@ctheune ctheune added this to the batou 2.5 milestone Nov 30, 2023
@elikoga elikoga linked a pull request May 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants