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.master
parent
9820a6d4a0
commit
c5a05e3143
|
@ -247,10 +247,8 @@ data types.")
|
||||||
(name "python-minimal")
|
(name "python-minimal")
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments python-2)
|
(substitute-keyword-arguments (package-arguments python-2)
|
||||||
((#:configure-flags _)
|
((#:configure-flags cf)
|
||||||
`(list "--enable-shared"
|
`(append ,cf '("--without-system-ffi")))))
|
||||||
(string-append "LDFLAGS=-Wl,-rpath="
|
|
||||||
(assoc-ref %outputs "out") "/lib")))))
|
|
||||||
(inputs '()))) ;none of the optional dependencies
|
(inputs '()))) ;none of the optional dependencies
|
||||||
|
|
||||||
(define-public python-minimal
|
(define-public python-minimal
|
||||||
|
@ -258,10 +256,8 @@ data types.")
|
||||||
(name "python-minimal")
|
(name "python-minimal")
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments python)
|
(substitute-keyword-arguments (package-arguments python)
|
||||||
((#:configure-flags _)
|
((#:configure-flags cf)
|
||||||
`(list "--enable-shared"
|
`(append ,cf '("--without-system-ffi")))))
|
||||||
(string-append "LDFLAGS=-Wl,-rpath="
|
|
||||||
(assoc-ref %outputs "out") "/lib")))))
|
|
||||||
|
|
||||||
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
|
;; OpenSSL is a mandatory dependency of Python 3.x, for urllib;
|
||||||
;; zlib is required by 'zipimport', used by pip.
|
;; zlib is required by 'zipimport', used by pip.
|
||||||
|
|
Reference in New Issue