Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't write to Fromager's virtual env #437

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tiran
Copy link
Collaborator

@tiran tiran commented Sep 20, 2024

Until now, Fromager was installing build dependencies into its virtual
environment. The build dependencies were necessary to run
pyproject_hooks. Some hooks expect build dependencies and build system
providers to be installed.

Fromager now uses a new virtualenv that is bound to the WorkContext.
The build dependencies are installed into the work environment. The hook
caller uses the interpreter from the work env instead of Fromager's
interpreter.

The context environment will eventually go away after we have refactored
the code to use the package's build env.

@tiran tiran force-pushed the isolate_build_env branch 2 times, most recently from 5d6ed1b to b9e98be Compare September 22, 2024 10:13
@mergify mergify bot added the ci label Sep 22, 2024
Until now, Fromager was installing build dependencies into its virtual
environment. The build dependencies were necessary to run
`pyproject_hooks`. Some hooks expect build dependencies and build system
providers to be installed.

Fromager now uses a new virtualenv that is bound to the `WorkContext`.
The build dependencies are installed into the work environment. The hook
caller uses the interpreter from the work env instead of Fromager's
interpreter.

The context environment will eventually go away after we have refactored
the code to use the package's build env.

Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran marked this pull request as ready for review September 26, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant