mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-3.8: Fix indentation.
* gnu/packages/python.scm (python-3.8): Fix indentation.
This commit is contained in:
parent
a8650a70ab
commit
44b0ffcf00
1 changed files with 29 additions and 28 deletions
|
@ -362,7 +362,8 @@ data types.")
|
||||||
(properties `((superseded . ,python-2)))))
|
(properties `((superseded . ,python-2)))))
|
||||||
|
|
||||||
(define-public python-3.8
|
(define-public python-3.8
|
||||||
(package (inherit python-2)
|
(package
|
||||||
|
(inherit python-2)
|
||||||
(name "python")
|
(name "python")
|
||||||
(version "3.8.5")
|
(version "3.8.5")
|
||||||
(source (origin
|
(source (origin
|
||||||
|
@ -430,24 +431,24 @@ data types.")
|
||||||
" test_write_pty")
|
" test_write_pty")
|
||||||
'()))))
|
'()))))
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
,@(if (hurd-system?)
|
,@(if (hurd-system?)
|
||||||
`((delete 'patch-regen-for-hurd)) ;regen was removed after 3.5.9
|
`((delete 'patch-regen-for-hurd)) ;regen was removed after 3.5.9
|
||||||
'())
|
'())
|
||||||
(add-before 'check 'set-TZDIR
|
(add-before 'check 'set-TZDIR
|
||||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
;; test_email requires the Olson time zone database.
|
;; test_email requires the Olson time zone database.
|
||||||
(setenv "TZDIR"
|
(setenv "TZDIR"
|
||||||
(string-append (assoc-ref
|
(string-append (assoc-ref
|
||||||
(or native-inputs inputs) "tzdata")
|
(or native-inputs inputs) "tzdata")
|
||||||
"/share/zoneinfo"))
|
"/share/zoneinfo"))
|
||||||
#t))
|
#t))
|
||||||
;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
|
;; Unset SOURCE_DATE_EPOCH while running the test-suite and set it
|
||||||
;; again afterwards. See <https://bugs.python.org/issue34022>.
|
;; again afterwards. See <https://bugs.python.org/issue34022>.
|
||||||
(add-before 'check 'unset-SOURCE_DATE_EPOCH
|
(add-before 'check 'unset-SOURCE_DATE_EPOCH
|
||||||
(lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
|
(lambda _ (unsetenv "SOURCE_DATE_EPOCH") #t))
|
||||||
(add-after 'check 'reset-SOURCE_DATE_EPOCH
|
(add-after 'check 'reset-SOURCE_DATE_EPOCH
|
||||||
(lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
|
(lambda _ (setenv "SOURCE_DATE_EPOCH" "1") #t))
|
||||||
(replace 'rebuild-bytecode
|
(replace 'rebuild-bytecode
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
@ -464,12 +465,12 @@ data types.")
|
||||||
"python3"
|
"python3"
|
||||||
'(string-append out
|
'(string-append out
|
||||||
"/bin/python3"))
|
"/bin/python3"))
|
||||||
,@opt
|
,@opt
|
||||||
"-m" "compileall"
|
"-m" "compileall"
|
||||||
"-f" ; force rebuild
|
"-f" ; force rebuild
|
||||||
;; Don't build lib2to3, because it's Python 2 code.
|
;; Don't build lib2to3, because it's Python 2 code.
|
||||||
"-x" "lib2to3/.*"
|
"-x" "lib2to3/.*"
|
||||||
,file)))
|
,file)))
|
||||||
(find-files out "\\.py$")))
|
(find-files out "\\.py$")))
|
||||||
(list '() '("-O") '("-OO")))
|
(list '() '("-O") '("-OO")))
|
||||||
#t)))
|
#t)))
|
||||||
|
@ -481,9 +482,9 @@ data types.")
|
||||||
'("arm" "aarch64"))
|
'("arm" "aarch64"))
|
||||||
'((add-after 'unpack 'apply-alignment-patch
|
'((add-after 'unpack 'apply-alignment-patch
|
||||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||||
(invoke "patch" "-p1" "--force" "--input"
|
(invoke "patch" "-p1" "--force" "--input"
|
||||||
(assoc-ref (or native-inputs inputs)
|
(assoc-ref (or native-inputs inputs)
|
||||||
"arm-alignment.patch")))))
|
"arm-alignment.patch")))))
|
||||||
'()))))))
|
'()))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("tzdata" ,tzdata-for-tests)
|
`(("tzdata" ,tzdata-for-tests)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue