mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
guix: python: Add package-with-python2, a procedure rewriting a package
to compile with Python 2 instead of the default Python 3. * guix/build-system/python.scm (default-python2, package-with-explicit-python, package-with-python2): New procedures. * guix/build-system/python.scm (python2-pytz, python2-babel): Use package-with-python2.
This commit is contained in:
parent
b191f88ee3
commit
11bb85a10d
2 changed files with 56 additions and 9 deletions
|
@ -28,6 +28,7 @@
|
|||
#:use-module (gnu packages patchelf)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix build-system python)
|
||||
#:use-module (guix build-system trivial))
|
||||
|
@ -215,9 +216,7 @@ using Python 2.4 or higher and provides access to the Olson timezone database.")
|
|||
(license x11)))
|
||||
|
||||
(define-public python2-pytz
|
||||
(package (inherit python-pytz)
|
||||
(name "python2-pytz")
|
||||
(arguments (append (package-arguments python-pytz) `(#:python ,python-2)))))
|
||||
(package-with-python2 python-pytz))
|
||||
|
||||
(define-public python-babel
|
||||
(package
|
||||
|
@ -247,8 +246,4 @@ etc. ")
|
|||
(license bsd-3)))
|
||||
|
||||
(define-public python2-babel
|
||||
(package (inherit python-babel)
|
||||
(name "python2-babel")
|
||||
(inputs
|
||||
`(("python2-pytz" ,python2-pytz)))
|
||||
(arguments (append (package-arguments python-babel) `(#:python ,python-2)))))
|
||||
(package-with-python2 python-babel))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue