Skip to content
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

[POC] gh-85454: Extract and inject distutils from setuptools whl #95254

Closed
wants to merge 2 commits into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Jul 25, 2022

Extract the wheel from ensurepip's bundle and inject setuptools and
distutils into sys.path.

Extract the wheel from ensurepip's bundle and inject setuptools and
distutils into sys.path.
@tiran
Copy link
Member Author

tiran commented Jul 25, 2022

This looks kinda horrible but it works surprisingly well.

@encukou
Copy link
Member

encukou commented Aug 4, 2022

In the long term, pip will probably stop containing setuptools.
Maybe we should do this with sysconfig, at least for some platforms. It's something we could then also use in the tutorial: of course the tutorial should recommend third-party tools, from Cython to setuptools, but that should be links to their docs. IMO, it would be helpful to doc & test using sysconfig to get a bare-bones gcc/clang command line for a simple extension.

@pradyunsg
Copy link
Member

pradyunsg commented Sep 23, 2022

FWIW, this isn’t a long-term concern: (puts on pip maintainer hat) we want to do it, for 3.12.

#95299

@vstinner
Copy link
Member

Is this PR still relevant? It's now outdated. I closed #92584

@pradyunsg
Copy link
Member

This is no longer relevant.

@pradyunsg pradyunsg closed this Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants