-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
import setuptools fails on importing distutils on an installed Python 3.12 (without distutils) #99101
Comments
I just removed distutils packages: commit. |
If I install Python without ensurepip:
Well, pip and setuptools are missing, as expected:
If I install pip manually:
In this case, pip and setuptools work as expected:
distutils is available directly thanks to
|
Oh wait, I can reproduce the issue if pip is imported before setuptools:
|
Hum, I misunderstood the problem. I opened pypa/setuptools#3661 instead. |
Install a fresh Python 3.12:
import setuptools
fails on importing distutils on this fresh Python 3.12 (without distutils):This setuptools installation miss distutils. I guess that
make install
usedensurepip
to install setuptools. I have these versions:ensurepip has:
The text was updated successfully, but these errors were encountered: