-
Notifications
You must be signed in to change notification settings - Fork 204
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
prepend to $PYTHONPATH
or $EBPYTHONPREFIXES
in generated module files by automatically scanning for python site package directories
#4539
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
27c32ef
Add option for preferring EBPYTHONPREFIXES
Micket 4652509
Add automatic detection of python site-package dir in installations
Micket 1acb45a
Switch to using prepend_paths instead of append_paths
Micket d1c889f
Fix relative paths when globbing for python paths
Micket 0310bed
Simplify generated EBPYTHONPREFIXES path
Micket a1e4ecc
Rework logic to allow nonstandard PYTHONPATHs
Micket 4ed16be
Use defaultdict with sets for added_paths_per_key
Micket 9f3cf6a
Exclude base python installations themselves from automatic PYTHONPATH
Micket 037827b
Fix logic when someone else added PYTHONPATH/EBPYTHONPREFIXES
Micket 38da36b
Add runtime_only flag to dependencies()
Micket 46a52df
Switch to more reliable way of checking for direct dependencies.
Micket fb51411
Drop extra check for multiple PYTHONPATH's
Micket a064006
Fix check for Python runtime dep
Micket d281fc8
Switch method of detecting base python install
Micket 11cffaa
Add all the found python paths even when using PYTHONPATH
Micket f90a12b
Drop lib64 variant as it's not supported by sitecustomize.py
Micket 1d78e6c
Default --prefer-ebpythonprefixes to false
Micket 7b7a59f
Rename options and parameters for ebpythonprefixes change
Micket dc488f5
Switch to using relpath to make code robust
Micket 7e417d3
Use relative paths when looking for python paths
Micket 9813bc8
Replace glob(root_dir=...) which only is supported in python 3.10
Micket 206736e
add test to verify that $PYTHONPATH or $EBPYTHONPREFIXES are set corr…
boegel 5eb6d07
move logic to set $PYTHONPATH or $EBPYTHONPREFIX to dedicated make_mo…
boegel 835e63c
Merge pull request #5 from boegel/ebpythonprefixes2
Micket 76fec7b
take into account multi_deps when determining whether to use $PYTHONP…
boegel 11f132e
remove force_pythonpath easyconfig paramter, can be re-introduced lat…
boegel c3b5011
Merge pull request #6 from boegel/ebpythonprefixes2
Micket File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we have either an "enum"
dep_type=BUILD|RUNTIME|BOTH
or at least useinclude_build=True, include_runtime=True
because now we have a potentially "invalid" call: When both are TrueMaybe we should at least rename to
exclude_runtime, exclude_build
which would be mostly backwards compatible and setting both to True seems more reasonable to return nothingThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's follow up on that in a separate PR, I want to get this PR merged ASAP.
Maybe open an issue for it, so we can tag it with
5.0
milestone.