File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -139,20 +139,30 @@ def generate_build_file_contents(
139
139
there may be no Python sources whatsoever (e.g. packages written in Cython: like `pymssql`).
140
140
"""
141
141
142
+ # `dist-info` contains non-determinisitc files which can change any time
143
+ # the repository rules run. Below is a list of known patterns to these
144
+ # files. However, not all files should be ignored as certain packages
145
+ # require things like `top_level.txt`.
146
+ dist_info_ignores = [
147
+ "**/*.dist-info/METADATA" ,
148
+ "**/*.dist-info/RECORD" ,
149
+ "**/*.dist-info/WHEEL" ,
150
+ ]
151
+
142
152
data_exclude = list (
143
153
set (
144
154
[
145
155
"*.whl" ,
146
156
"**/__pycache__/**" ,
147
157
"**/* *" ,
148
- "**/*.dist-info/**" ,
149
158
"**/*.py" ,
150
159
"**/*.pyc" ,
151
160
"BUILD.bazel" ,
152
161
"WORKSPACE" ,
153
162
f"{ WHEEL_ENTRY_POINT_PREFIX } *.py" ,
154
163
]
155
164
+ data_exclude
165
+ + dist_info_ignores
156
166
)
157
167
)
158
168
You can’t perform that action at this time.
0 commit comments