-
-
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] Importing setuptools
is slow and takes nearly half a second
#3441
Comments
Good catch! |
Hi @jiasli thank you very much for the study. Would you like to suggest any PRs tackling this issue? For Python <= 3.12, I think we can also delay the import of Currently the plan is to remove |
Thanks lot @abravalheri for the analysis.
I would certainly like to, but sadly I am not an expert on the delicate implementation of Python infrastructures. 🤣
This will certainly make If |
setuptools version
63.1.0
Python version
3.10.5
OS
Windows
Additional environment information
No response
Description
Importing
setuptools
is slow and takes nearly half a second. This imposes significant performance impact on CLI applications (Azure/azure-cli#23177).Expected behavior
Importing
setuptools
should be fast.How to Reproduce
Output
Without
setuptools
, importingdistutils
is pretty fast:The text was updated successfully, but these errors were encountered: