me
/
guix
Archived
1
0
Fork 0

gnu: python-sip: Use PYTHON-VERSION.

* gnu/packages/qt.scm (python-sip)[arguments]: Add #:imported-modules.
Rewrite phase to use PYTHON-VERSION instead of custom implementation.
master
Marius Bakke 2020-06-07 22:38:30 +02:00
parent 9097f99448
commit 8cbb32da7d
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 4 additions and 7 deletions

View File

@ -1901,7 +1901,10 @@ and binaries removed, and adds modular support for using system libraries.")
`(("python" ,python-wrapper)))
(arguments
`(#:tests? #f ; no check target
#:imported-modules ((guix build python-build-system)
,@%gnu-build-system-modules)
#:modules ((srfi srfi-1)
((guix build python-build-system) #:select (python-version))
,@%gnu-build-system-modules)
#:phases
(modify-phases %standard-phases
@ -1911,14 +1914,8 @@ and binaries removed, and adds modular support for using system libraries.")
(bin (string-append out "/bin"))
(include (string-append out "/include"))
(python (assoc-ref inputs "python"))
(python-version
(last (string-split python #\-)))
(python-major+minor
(string-join
(take (string-split python-version #\.) 2)
"."))
(lib (string-append out "/lib/python"
python-major+minor
(python-version python)
"/site-packages")))
(invoke "python" "configure.py"
"--bindir" bin