-
-
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] stdlib test_distutils on python3.8 runs only with SETUPTOOLS_USE_DISTUTILS=stdlib #2965
Comments
The way the distutils hack works, it makes Setuptools' own copy of distutils take precedence over the standard library, so causes What is something of a surprise is the error message you encountered. I don't encounter that error if I run I'm guessing that because My recommendation would be to continue to run tests with Do you have any other recommendations in mind? |
Hi, I just got stuck in a similar error. On python 3.8 (which is the default on ubuntu 20.04 LTS), with setuptools 60.x, I am unable to install packages in editable mode without Here a reproducible example: To reproduce, perform the following steps in the unpacked folder: $ docker build . -t setuptools_60_issue
$ docker run -it setuptools_60_issue
root@cfb245293780:/#
# As expected, if the module is not installed, it fails
root@cfb245293780:/# python3 -c "import example_mod"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'example_mod'
# But, it also fails when the module is installed in editable mode
# NOTE: pip reports successful install but then the module is unavailable
root@cfb245293780:/# pip install -e package/
Obtaining file:///package
Installing collected packages: setuptools-60-issue
Running setup.py develop for setuptools-60-issue
Successfully installed setuptools-60-issue
root@cfb245293780:/# python3 -c "import example_mod"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'example_mod' If works fine with the env var or with normal install. It also works with python 3.9. |
setuptools version
setuptools==60.0.0
Python version
Python 3.8
OS
Ubuntu 20.04
Additional environment information
No response
Description
Collecting the stdlib test_distutils.py test suite fails unless I use SETUPTOOLS_USE_DISTUTILS=stdlib with setuptools>60
Expected behavior
I can set SETUPTOOLS_USE_DISTUTILS=stdlib, but thought this should work without it?
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: