Skip to content

Commit a791d04

Browse files
committed
Merge branch 'main' of https://github.com/bazel-contrib/rules_python into fix.bin.calls.bin
2 parents a63afdb + bb2aad2 commit a791d04

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ END_UNRELEASED_TEMPLATE
129129
* (pypi) Support `requirements.txt` files that use different versions of the same
130130
package targeting different target platforms.
131131
([#2797](https://github.com/bazel-contrib/rules_python/issues/2797)).
132+
* (py_wheel) Add directories in deterministic order.
132133

133134
{#v0-0-0-added}
134135
### Added

python/private/python_bootstrap_template.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ source =
457457
env=env,
458458
cwd=workspace
459459
)
460+
PrintVerboseCoverage('Return code of coverage run:', ret_code)
460461
output_filename = os.path.join(os.environ['COVERAGE_DIR'], 'pylcov.dat')
461462

462463
PrintVerboseCoverage('Converting coveragepy database to lcov:', output_filename)
@@ -470,10 +471,12 @@ source =
470471
kparams['stdout'] = sys.stderr
471472
kparams['stderr'] = sys.stderr
472473

473-
ret_code = subprocess.call(
474+
lcov_ret_code = subprocess.call(
474475
params,
475476
**kparams
476-
) or ret_code
477+
)
478+
PrintVerboseCoverage('Return code of coverage lcov:', lcov_ret_code)
479+
ret_code = lcov_ret_code or ret_code
477480

478481
try:
479482
os.unlink(rcfile_name)

tools/wheelmaker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def add_file(self, package_filename, real_filename):
152152
"""Add given file to the distribution."""
153153

154154
if os.path.isdir(real_filename):
155-
directory_contents = os.listdir(real_filename)
155+
directory_contents = sorted(os.listdir(real_filename))
156156
for file_ in directory_contents:
157157
self.add_file(
158158
"{}/{}".format(package_filename, file_),

0 commit comments

Comments
 (0)