build-system/python: Set PYTHONDONTWRITEBYTECODE.
* guix/build/python-build-system.scm (enable-bytecode-determinism): Set PYTHONDONTWRITEBYTECODE.
This commit is contained in:
parent
4078b9acff
commit
cf495c934e
@ -260,6 +260,9 @@ installed with setuptools."
|
||||
"Improve determinism of pyc files."
|
||||
;; Use deterministic hashes for strings, bytes, and datetime objects.
|
||||
(setenv "PYTHONHASHSEED" "0")
|
||||
;; Prevent Python from creating .pyc files when loading modules (such as
|
||||
;; when running a test suite).
|
||||
(setenv "PYTHONDONTWRITEBYTECODE" "1")
|
||||
#t)
|
||||
|
||||
(define %standard-phases
|
||||
|
Loading…
Reference in New Issue
Block a user