From a5f199732ba918b9486852308c5e19a73c8b48ff Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 14 Aug 2022 20:57:55 +0200 Subject: [PATCH] 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. --- gnu/packages/cran.scm | 8 ++++++++ 1 file changed, 8 insertions(+) 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