mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: python: Factorize configure flags with minimal variants.
* gnu/packages/python.scm (python2-minimal, python-minimal)[arguments]: Reuse the inherited configure flags, and just add --without-system-ffi.
This commit is contained in:
parent
9820a6d4a0
commit
c5a05e3143
1 changed files with 4 additions and 8 deletions
|
@ -247,10 +247,8 @@ (define-public python2-minimal
|
|||
(name "python-minimal")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments python-2)
|
||||
((#:configure-flags _)
|
||||
`(list "--enable-shared"
|
||||
(string-append "LDFLAGS=-Wl,-rpath="
|
||||
(assoc-ref %outputs "out") "/lib")))))
|
||||
((#:configure-flags cf)
|
||||
`(append ,cf '("--without-system-ffi")))))
|
||||
(inputs '()))) ;none of the optional dependencies
|
||||
|
||||
(define-public python-minimal
|
||||
|
@ -258,10 +256,8 @@ (define-public python-minimal
|
|||
(name "python-minimal")
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments python)
|
||||
((#:configure-flags _)
|
||||
`(list "--enable-shared"
|
||||
(string-append "LDFLAGS=-Wl,-rpath="
|
||||
(assoc-ref %outputs "out") "/lib")))))
|
||||
((#:configure-flags cf)
|
||||
`(append ,cf '("--without-system-ffi")))))
|
||||
|
||||
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
|
||||
;; zlib is required by 'zipimport', used by pip.
|
||||
|
|
Loading…
Reference in a new issue