-
-
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
Python 3.10: ModuleNotFoundError: No module named 'distutils.command.bdist_wininst' #2558
Comments
I suppose the import could be try-excepted and the file might do nothing if nothing is there. Alternatively, the command could be removed from next setuptools version altogether. |
I've tried
But I've been bit by pytest-dev/pytest#8227 |
This will be tricky. The distutils deprecation breaks a lot of tests and integration tests try to use old versions of pip that are not compatible with Python 3.10 due to collections.abc aliases removed from collections. |
I've drafted #2566 to solve my most immediate issues. That PR allows use to continue testing with Python 3.10.0a5 until a permanent solution is discussed. |
Oh, I expected setuptools to be compatible with bdist_wininst removal, I prepared the removal in setuptools with: But it seems like I missed this issue. |
This seems like a separate issue that can be worked around by skipping these tests on Python 3.10 for now. Do we know which versions of pip run on Python 3.10? |
Looks like pip 19.2 fixed the issue and 19.1.1 is the last version with the defect. |
Hello. With Python 3.10.0a5+ we have this problem when running setuptools tests in Fedora:
https://docs.python.org/3.10/whatsnew/3.10.html#distutils
The text was updated successfully, but these errors were encountered: