Skip to content

Commit

Permalink
try to make pip wheels install reproducible
Browse files Browse the repository at this point in the history
  • Loading branch information
pamaury committed Jan 16, 2024
1 parent 6766964 commit f1023ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions third_party/python/pip.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def _pip_wheel_impl(rctx):
rctx.report_progress("Installing the Python wheel package")
result = rctx.execute(
args,
environment = {
"SOURCE_DATE_EPOCH": "315532800",
"PYTHONHASHSEED": 0,
},
timeout = rctx.attr.timeout,
quiet = rctx.attr.quiet,
)
Expand All @@ -66,6 +70,10 @@ def _pip_wheel_impl(rctx):
rctx.report_progress("Pre-building Python wheels")
result = rctx.execute(
args,
environment = {
"SOURCE_DATE_EPOCH": "315532800",
"PYTHONHASHSEED": 0,
},
timeout = rctx.attr.timeout,
quiet = rctx.attr.quiet,
)
Expand All @@ -81,6 +89,10 @@ def _pip_wheel_impl(rctx):
rctx.report_progress("Generating sanitzed requirements file")
result = rctx.execute(
args,
environment = {
"SOURCE_DATE_EPOCH": "315532800",
"PYTHONHASHSEED": 0,
},
timeout = rctx.attr.timeout,
quiet = rctx.attr.quiet,
working_directory = "./",
Expand Down

0 comments on commit f1023ac

Please sign in to comment.