[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: build-system/python: Set PYTHONDONTWRITEBYT
From: |
guix-commits |
Subject: |
branch core-updates updated: build-system/python: Set PYTHONDONTWRITEBYTECODE. |
Date: |
Fri, 20 Nov 2020 09:28:22 -0500 |
This is an automated email from the git hooks/post-receive script.
apteryx pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new cf495c9 build-system/python: Set PYTHONDONTWRITEBYTECODE.
cf495c9 is described below
commit cf495c934e3cc9c642edb8ddb783db64618682a5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Nov 20 01:00:25 2020 -0500
build-system/python: Set PYTHONDONTWRITEBYTECODE.
* guix/build/python-build-system.scm (enable-bytecode-determinism): Set
PYTHONDONTWRITEBYTECODE.
---
guix/build/python-build-system.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/guix/build/python-build-system.scm
b/guix/build/python-build-system.scm
index 4a07496..1179315 100644
--- a/guix/build/python-build-system.scm
+++ b/guix/build/python-build-system.scm
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: build-system/python: Set PYTHONDONTWRITEBYTECODE.,
guix-commits <=