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.
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
CEP for specifying the location of site-packages in repodata #90
CEP for specifying the location of site-packages in repodata #90
Changes from 3 commits
2218dc0
f069e1b
500bb1c
68c385b
4e58baa
b4c2152
1a71ed3
8584756
6ed4ce7
013e8f0
23648a0
f6c84ae
4b744c8
4c14da6
07c9512
8574cac
44605cd
506bf69
12f1825
9ee2913
6c3ea4d
a975481
8097f1a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
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.
This style of check would require resolving
target_prefix
as well as it needs to take into account symbolic links and various re-directs on Windows file systems.The function as written in the CEP closely matches the filter used by by tarfile module in the CPython standard library for validating paths, https://github.com/python/cpython/blob/v3.13.0/Lib/tarfile.py#L816-L818
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.
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.
The field specified in the CEP is
python_site_packages_path
with_path
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.
Yes, suggestion is to rename without _path
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.
I'm open to either name. Does anyone have a strong opinion one way or another?
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.
current_repodata.json
is less important ever since the libmamba solver has been rolled out, do you think it would be a dealbreaker if we'd not support this in that file or am I jumping the gun on this one?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.
It is not a dealbreaker to not include the field in
current_repodata.json
. The field should be included in apython
shard of repodata if/when that becomes a reality. I don't see including this as a big lift in either case as the field is tied to the package entry from which I expect both to be derived.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.
Individual entries in current_repodata and sharded repodata will be the same as the ones in monolithic repodata.