-
-
Notifications
You must be signed in to change notification settings - Fork 598
Allow METADATA files in pip_repository generated targets #637
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,12 +139,10 @@ def generate_build_file_contents( | |
there may be no Python sources whatsoever (e.g. packages written in Cython: like `pymssql`). | ||
""" | ||
|
||
# `dist-info` contains non-determinisitc files which can change any time | ||
# the repository rules run. Below is a list of known patterns to these | ||
# files. However, not all files should be ignored as certain packages | ||
# require things like `top_level.txt`. | ||
dist_info_ignores = [ | ||
"**/*.dist-info/METADATA", | ||
# RECORD is known to contain sha256 checksums of files which might include the checksums | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there known examples this happens in? Some import lib functions fail still because they use data from RECORD, the files() method on a distribution for instance. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I too have been wondering why we're doing so much non-standard unpacking and exclusion of files from wheel packages. I'm trying to land a change that uses I think we need a better way to handle non-determinism. I think we need to either make it opt-in somehow, or direct people in how to use a "wheel only" setup (using |
||
# of generated files produced when wheels are installed. The file is ignored to avoid | ||
# Bazel caching issues. | ||
"**/*.dist-info/RECORD", | ||
] | ||
|
||
|
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 is a restored regression test from #626 but has new meaning as it now uses
METADATA
files to ensure this isn't removed from thedata
attributes of generated targets.