~ruther/guix-local

c5a05e31437d640647b5aa1dd70917149bb3f1a3 — Ludovic Courtès 10 years ago 9820a6d
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.
1 files changed, 4 insertions(+), 8 deletions(-)

M gnu/packages/python.scm
M gnu/packages/python.scm => gnu/packages/python.scm +4 -8
@@ 247,10 247,8 @@ data types.")
    (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 @@ data types.")
    (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.