-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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] Issue with local distutils override, duplicate module entries #3035
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I've confirmed the issue and localized where the module appears:
With those two asserts, the first one passes and the second one doesn't. It's interesting and a little surprising that |
setuptools version
60.5.0
Python version
3.9.9
OS
macOS
Additional environment information
edit(jaraco):
I explicitly state that I DO NOT AGREE with being forced to agree with the PSF Code of Conduct to submit this issue. I ticked the box just because I cannot continue otherwise. I hope this requirement for issue submission is an oversight. If not, please close this issue and ignore my report.Description
There are issues with the local
distutils
override leading to duplicateddistutils.log
module entries insys.modules
. As a side effect, the verbose flag (-v
) tosetup.py
does not work (i.e passing-v
DOES NOT increase verbosity).Expected behavior
import setuptools
, there should be no entries insys.modules
referring tosetuptools._distutils
.python setup.py -vv <command>
should increase verbosity.How to Reproduce
Run the following Python code:
Output
Obviously, the first entry is bogus and should not be printed.
Adding
print(log)
after thefrom distutils import log
import statement insetuptools/_distutils/dist.py
will help with debugging the problem. You should get the bogussetuptools._distutils.log
module.I believe this module duplication issue happens with other distutils submodules, you can check with:
which produces
Code of Conduct
The text was updated successfully, but these errors were encountered: