-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
sitecustomize.py
to implement environment layering (#5462)
## Summary After consultation with @carljm, we learned that modifying `PYTHONPATH` is insufficient, because Python won't resolve `.pth` files (editables) in the base environment. We also saw in #5459 that continuously appending to `PYTHONPATH` can have some unintended effects. This PR instead uses a `sitecustomize.py` in the ephemeral environment to add the base environment's `site-packages`. Closes #5459.
- Loading branch information
1 parent
6f45403
commit e4d1039
Showing
4 changed files
with
80 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters