-
I am transitioning to pyproject.toml and currently playing around with build backends. Is there a way to specify the location for the build environment? Currently if I run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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.