gnu: python: Set SOURCE_DATE_EPOCH to 1 instead of 0.
* gnu/packages/python.scm (python-2)[arguments]: Set SOURCE_DATE_EPOCH to 1 to match what the daemon does. * guix/build/python-build-system.scm (set-SOURCE-DATE-EPOCH): Likewise.
This commit is contained in:
parent
dedc832070
commit
a665996f58
|
@ -164,7 +164,7 @@
|
||||||
;; Use zero as the timestamp in .pyc files so that builds are
|
;; Use zero as the timestamp in .pyc files so that builds are
|
||||||
;; deterministic. TODO: Remove it when this variable is set in
|
;; deterministic. TODO: Remove it when this variable is set in
|
||||||
;; gnu-build-system.scm.
|
;; gnu-build-system.scm.
|
||||||
(setenv "SOURCE_DATE_EPOCH" "0")
|
(setenv "SOURCE_DATE_EPOCH" "1")
|
||||||
#t))
|
#t))
|
||||||
(add-before
|
(add-before
|
||||||
'check 'pre-check
|
'check 'pre-check
|
||||||
|
|
|
@ -140,7 +140,7 @@ installed with setuptools."
|
||||||
"Set the 'SOURCE_DATE_EPOCH' environment variable."
|
"Set the 'SOURCE_DATE_EPOCH' environment variable."
|
||||||
;; Use zero as the timestamp in .pyc files so that builds are deterministic.
|
;; Use zero as the timestamp in .pyc files so that builds are deterministic.
|
||||||
;; TODO: Remove it when this variable is set in GNU:%STANDARD-PHASES.
|
;; TODO: Remove it when this variable is set in GNU:%STANDARD-PHASES.
|
||||||
(setenv "SOURCE_DATE_EPOCH" "0"))
|
(setenv "SOURCE_DATE_EPOCH" "1"))
|
||||||
|
|
||||||
(define %standard-phases
|
(define %standard-phases
|
||||||
;; 'configure' and 'build' phases are not needed. Everything is done during
|
;; 'configure' and 'build' phases are not needed. Everything is done during
|
||||||
|
|
Loading…
Reference in New Issue