gnu: python-cffi: Update to 1.10.0.
* gnu/packages/python.scm (python-cffi): Update to 1.10.0. [arguments]<#:phases>: Patch distutils.ccompiler call to use "gcc". Patch another hard-coded cc invocation. Adjust `py.test` invocation per README.master
parent
295f32f34b
commit
029933cf79
|
@ -4763,13 +4763,13 @@ a front-end for C compilers or analysis tools.")
|
||||||
(define-public python-cffi
|
(define-public python-cffi
|
||||||
(package
|
(package
|
||||||
(name "python-cffi")
|
(name "python-cffi")
|
||||||
(version "1.4.2")
|
(version "1.10.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "cffi" version))
|
(uri (pypi-uri "cffi" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "161rj52rzi3880lij17d6i9kvgkiwjilrqjs8405k8sf6ryif7cg"))))
|
(base32 "1mffyilq4qycm8gs4wkgb18rnqil8a9blqq77chdlshzxc8jkc5k"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc"))
|
||||||
(inputs
|
(inputs
|
||||||
|
@ -4794,7 +4794,18 @@ a front-end for C compilers or analysis tools.")
|
||||||
(getenv "PYTHONPATH")
|
(getenv "PYTHONPATH")
|
||||||
":" (getcwd) "/build/"
|
":" (getcwd) "/build/"
|
||||||
(car (scandir "build" (cut string-prefix? "lib." <>)))))
|
(car (scandir "build" (cut string-prefix? "lib." <>)))))
|
||||||
(zero? (system* "py.test" "-v"))))
|
|
||||||
|
;; XXX The "normal" approach of setting CC and friends does
|
||||||
|
;; not work here. Is this the correct way of doing things?
|
||||||
|
(substitute* "testing/embedding/test_basic.py"
|
||||||
|
(("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
|
||||||
|
(string-append "c = distutils.ccompiler.new_compiler();"
|
||||||
|
"c.set_executables(compiler='gcc',"
|
||||||
|
"compiler_so='gcc',linker_exe='gcc',"
|
||||||
|
"linker_so='gcc -shared')")))
|
||||||
|
(substitute* "testing/cffi0/test_ownlib.py"
|
||||||
|
(("'cc testownlib") "'gcc testownlib"))
|
||||||
|
(zero? (system* "py.test" "-v" "c/" "testing/"))))
|
||||||
(add-after 'install 'install-doc
|
(add-after 'install 'install-doc
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
||||||
|
|
Loading…
Reference in New Issue