You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, pip invokes setup.py files in a manner that injects setuptools into sys.modules; which is mainly for compatibility with projects that use distutils.setup in their setup.py files.
With distutils being deprecated and slated for removal, we should drop our compatibility shim for this.
Describe the solution you'd like
Change the logic used for make_setuptools_shim_args, to not attempt the setuptools injection for Python 3.12+ (whenever distutils gets removed).
Alternative Solutions
Do nothing. Continue performing this injection after Python 3.12+, since it'll be a no-op.