Skip to content

Specific package from install environment in build environment. #4035

Answered by abravalheri
Tim-Salzmann asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tim-Salzmann, I am afraid that the way the installation procedure is currently defined by PyPA decouples the building phase with the installation phase.

There is no guarantee the "installation environment" is "ready" (or even available at all) when running the "build" phase. This means that setuptools itself has no access to the "installation environment", and therefore even if we wanted, we have no means of providing references to it in setup.py.

The only alternative I can see if you want to go via the (2) route is explicitly asking for pip to disable build isolation (pip install --no-build-isolation ...). This option asks pip to use the same environment for building and installing t…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Tim-Salzmann
Comment options

You must be logged in to vote
1 reply
@abravalheri
Comment options

Comment options

You must be logged in to vote
1 reply
@abravalheri
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants