Skip to content

Specify build env location for setuptools.build_meta #3647

Answered by webknjaz
ampx-mg asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think so. And also, build backends don't usually change the directory (setuptools is one). It's build frontends, like pip, that create temporary directories and prepare the environment. There's also pypa/build that allows skipping the env preparation but I think it still doesn't let you disable that.

If you want that for whatever reason, you could write your own front-end using the pep517 library (it is what's used in build and pip). There's also in-tree build frontends but I don't think they get any info about the original source location. Maybe one could smuggle this context via the build config or env vars but that's probably not the best idea.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ampx-mg
Comment options

Answer selected by webknjaz
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