mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-2: Honor 'SOURCE_DATE_EPOCH'.
* gnu/packages/patches/python-2.7-source-date-epoch.patch: New file. * gnu/packages/python.scm (python-2)[source]: Use it. [arguments]: Set SOURCE_DATE_EPOCH in 'patch-lib-shells' phase. * guix/build/python-build-system.scm (set-SOURCE-DATE-EPOCH): New procedure. (%standard-phases): Add it. * gnu-system.am (dist_patch_DATA): Add patch.
This commit is contained in:
parent
f8e7fdc416
commit
dedc832070
4 changed files with 49 additions and 1 deletions
|
@ -92,7 +92,9 @@
|
|||
(sha256
|
||||
(base32
|
||||
"1h7zbrf9pkj29hlm18b10548ch9757f75m64l47sy75rh43p7lqw"))
|
||||
(patches (list (search-patch "python-2.7-search-paths.patch")))))
|
||||
(patches (map search-patch
|
||||
'("python-2.7-search-paths.patch"
|
||||
"python-2.7-source-date-epoch.patch")))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f
|
||||
|
@ -158,6 +160,11 @@
|
|||
"Lib/distutils/tests/test_spawn.py"
|
||||
"Lib/test/test_subprocess.py"))
|
||||
(("/bin/sh") (which "sh")))
|
||||
|
||||
;; Use zero as the timestamp in .pyc files so that builds are
|
||||
;; deterministic. TODO: Remove it when this variable is set in
|
||||
;; gnu-build-system.scm.
|
||||
(setenv "SOURCE_DATE_EPOCH" "0")
|
||||
#t))
|
||||
(add-before
|
||||
'check 'pre-check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue