-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[BUG] import setuptools
raises a DeprecationWarning on Windows
#3536
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
Comments
Is it possible to have the setuptools tests fail if setuptools itself produces warnings? And to run the integration tests on Windows too? It would be nice if the CI tests could help avoid the excitement that we're experiencing in future. |
Setuptools does fail on warnings, but intentionally suppressed this DeprecationWarning because it gets triggered when those modules get tested. I did not realize that Setuptools actually imported this module. That's slightly surprising given that I removed the module and the tests continued to pass. But now that I look at it, it's not all that surprising with all the The choice to deprecate these modules came a little rushed when backing out the removal of those modules. I definitely don't want these deprecation warnings to emit when using Setuptools. |
Please try again with v65.1.0 (releasing now). Confirmed it's working for me:
|
Thanks, I will give it a try! |
Would it be helpful for setuptools to have a sort of buildbot system where a few projects volunteer to build and test against setuptools master, say, daily in their own repos, and to gather the build statuses somewhere? It might help with testing things a bit more. And it would be okay if the list of projects was a bit fluid and changed over time. I could volunteer the main project I work on (qutip) and HPy for the list. Perhaps there is a wider discussion to be had about how we ensure things work nicely for C extensions while still allowing setuptools to evolve. I'm happy to be involved in that discussion (or even to start it) if someone points me to the right place. Apologies for cluttering this issue report a bit. |
@jaraco Worked for me. Thanks for the prompt action! |
setuptools version
setuptools==65.0.2
Python version
Python 3.9
OS
Windows
Additional environment information
No response
Description
On Windows,
import setuptools
raises a warning added in pypa/distutils@c802880.This issue does not occur in setuptools 65.0.1.
Expected behavior
No warnings.
How to Reproduce
python -Werror -c "import setuptools"
Output
The text was updated successfully, but these errors were encountered: