-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] python 3.12 does not have distutils (setuptools imports distutils) #4002
Comments
Actually it may be that the private pypi that some of the test run against are pulling an older setuptools -- I just added the latest 68.0.0 and am re-running the tests. 🤞 |
Yeah, that seems to have been my issue. |
FWIW, I ran into the same problem and had to remove the |
@madig thanks for writing that! I have been having the same problem and was stumped. |
@madig I had the exact same issue -- thank for posting the fix. |
Bump python packages to reasonable versions to fix build error with Python 3.12. Link: pytest-dev/pytest#11094 Link: yaml/pyyaml#736 Link: pypa/setuptools#4002 Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
setuptools version
68.0.0
Python version
3.12
OS
Ubunut Linux, WIndows, Mac OS
Additional environment information
I maintain pipenv and am trying to get enable python 3.12 support.
Description
Setuptools imports distutils: https://github.com/pypa/setuptools/blob/main/setuptools/__init__.py#L9
Its not an issue on my local Windows 3.12 because I can import distutils, but on the Github CI it fails: https://github.com/pypa/pipenv/actions/runs/5773881521/job/15650307431
What is the path forward given that python 3.12 drops distutils?
Expected behavior
I would expect setuptools would stop using disutils, but maybe there is some other piece of information I am missing.
How to Reproduce
https://github.com/pypa/pipenv/actions/runs/5773881521/job/15650307431
Output
The text was updated successfully, but these errors were encountered: