Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gtt
· 9y ago · 0 comments
How do they achieve reproducibility with python and some other languages which include timestamps and such?
Comments
[–]
anonacct37
9y ago
https://reproducible-builds.org/docs/timestamps/
[–]
rnhmjoj
9y ago
On NixOS python is patched so that if the environment variable DETERMINISTIC_BUILD is present the interpreter set the bytecode timestamps to 0. I suppose they did something similar.
[–]
mapreri
9y ago
Also, Debian binary packages don't ship prebuilt python bytecode, which is compiled at installation time. (just to reply to the specific example)
[–]
JoshTriplett
9y ago
Sometimes by eliminating the timestamps (don't put __DATE__ and __TIME__ in C code, for instance), but when that isn't possible:
https://reproducible-builds.org/specs/source-date-epoch/