build-system/python: Set PYTHONDONTWRITEBYTECODE.

* guix/build/python-build-system.scm (enable-bytecode-determinism): Set
PYTHONDONTWRITEBYTECODE.
This commit is contained in:
Maxim Cournoyer 2020-11-20 01:00:25 -05:00
parent 4078b9acff
commit cf495c934e
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -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