Skip to content

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

Closed
tiran wants to merge 2 commits into
python:mainfrom
tiran:gh-85454-inject-setuptools
Closed

tiran wants to merge 2 commits into
python:mainfrom
tiran:gh-85454-inject-setuptools

Conversation

@tiran

@tiran tiran commented Jul 25, 2022 •

Copy link
Copy Markdown
Member

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

tiran commented Jul 25, 2022

Copy link
Copy Markdown
Member Author

This looks kinda horrible but it works surprisingly well.

@encukou

encukou commented Aug 4, 2022

Copy link
Copy Markdown
Member

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

pradyunsg commented Sep 23, 2022 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

@pradyunsg

Copy link
Copy Markdown
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