summaryrefslogtreecommitdiff
path: root/gnu/packages/cran.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2022-08-14 20:57:55 +0200
committerRicardo Wurmus <rekado@elephly.net>2022-08-14 20:57:55 +0200
commita5f199732ba918b9486852308c5e19a73c8b48ff (patch)
treef51fb6e51ab3c14b4840309bbf29ce9616a20164 /gnu/packages/cran.scm
parent593327ef5b506f031d75349fdcda1ad04e6684ed (diff)
gnu: r-reticulate: Build reproducibly.
* gnu/packages/cran.scm (r-reticulate)[arguments]: Add build phase 'build-reproducibly to ensure that pyc files are built reproducibly.
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r--gnu/packages/cran.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 4ad1bfa760..f76f50b68d 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -9216,6 +9216,14 @@ always locate the files relative to your project root.")
(base32
"0b1szzsqyc8wcfpkn5517bb1ds064vs2hky71my3p74kfngay991"))))
(build-system r-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'build-reproducibly
+ (lambda _
+ (setenv "PYTHONHASHSEED" "0")
+ (setenv "PYTHONDONTWRITEBYTECODE" "1"))))))
(inputs (list python))
(propagated-inputs
(list r-here