3 ms·
How do they achieve reproducibility with python and some other languages which include timestamps and such?
by gtt 9y ago
How do they achieve reproducibility with python and some other languages which include timestamps and such?
- anonacct37 9y agohttps://reproducible-builds.org/docs/timestamps/ https://reproducible-builds.org/docs/timestamps/
- JoshTriplett 9y agoSometimes 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/ https://reproducible-builds.org/specs/source-date-epoch/
- mapreri 9y agoAlso, Debian binary packages don't ship prebuilt python bytecode, which is compiled at installation time. (just to reply to the specific example)
- rnhmjoj 9y agoOn 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.