Open jaraco opened 1 month ago
We're using it in a container, so we haven't hit this particular issue.
We can at least update the docs to say you need to run in a virtualenv. I'm not sure what would be involved in reworking the build backend dependency execution to extract dependencies. It may be possible to set up an isolated virtualenv for that.
Using pip-run to invoke fromager, it gets a lot done before attempting to install setuptools to the system Python environment and then fails because pip rejects the installation:
Perhaps the instructions should indicate that fromager should (must?) be run from a virtualenv as it attempts to modify the environment in which it runs.
Even better would be for fromager to use a tool like virtualenv or pip-run to install these dependencies on-demand rather than relying on the caller to set up a mutable environment.