mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-cython-0: Update to 0.29.37.
* gnu/packages/python-xyz.scm (python-cython-0): Update to 0.29.37. Use G-expressions. [build-system]: Inherit pyproject form python-cython. [arguments] <test-backend>: Use 'custom; <test-flags>: Utilize it instead of overwriting 'check phase. <phases>: Add 'pre-check; use default 'check. [inputs]: Inherit from python-cython. [native-inputs]: Likewise. [home-page]: Likewise. [synopsis]: Likewise. [description]: Likewise. Change-Id: I97e8662f0a53aa9bc702b835a347900c7ebd5ea1
This commit is contained in:
parent
349cda4632
commit
ee5eb416dd
1 changed files with 32 additions and 43 deletions
|
@ -10158,55 +10158,44 @@ writing C extensions for Python as easy as Python itself.")
|
||||||
(define-public python-cython-0
|
(define-public python-cython-0
|
||||||
(package
|
(package
|
||||||
(inherit python-cython)
|
(inherit python-cython)
|
||||||
(version "0.29.32")
|
;; It's the latest version of 0.29. See
|
||||||
|
;; <https://github.com/cython/cython/blob/0.29.37/CHANGES.rst>.
|
||||||
|
(version "0.29.37")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "Cython" version))
|
(uri (pypi-uri "Cython" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1xqsihpqnfal29nb5kmw8z71nd4jbsnbz7p3lkr094xpb13wycw7"))))
|
(base32 "1ysca2r23h12ai9wrym4ci0nvgwm3lfijrpj9xfyxbclvnkd84zq"))))
|
||||||
(build-system python-build-system)
|
|
||||||
;; we need the full python package and not just the python-wrapper
|
|
||||||
;; because we need libpython3.3m.so
|
|
||||||
(inputs
|
|
||||||
(list python))
|
|
||||||
(native-inputs
|
|
||||||
;; Needed for some tests that link against it.
|
|
||||||
(list libxcrypt))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-backend #~'custom
|
||||||
(add-before 'check 'set-HOME
|
#:test-flags
|
||||||
;; some tests require access to "$HOME/.cython"
|
#~(list "runtests.py"
|
||||||
(lambda _ (setenv "HOME" "/tmp")))
|
"-vv"
|
||||||
(replace 'check
|
"-j" (number->string (parallel-job-count))
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
;; XXX: On 32-bit architectures, running the parallel tests
|
||||||
;; Disable compiler optimizations to greatly reduce the running
|
;; fails on many-core systems, see
|
||||||
;; time of the test suite.
|
;; <https://github.com/cython/cython/issues/2807>.
|
||||||
(setenv "CFLAGS" "-O0")
|
#$@(if (not (target-64bit?))
|
||||||
|
#~("-x" "run.parallel")
|
||||||
(when tests?
|
#~())
|
||||||
(invoke "python" "runtests.py" "-vv"
|
#$@(if (system-hurd?)
|
||||||
"-j" (number->string (parallel-job-count))
|
#~("-x" "test_class_ref"
|
||||||
;; XXX: On 32-bit architectures, running the parallel tests
|
"-x" "test_compiler_directives"
|
||||||
;; fails on many-core systems, see
|
"-x" "test_lang_version")
|
||||||
;; <https://github.com/cython/cython/issues/2807>.
|
#~())
|
||||||
,@(if (not (target-64bit?))
|
;; This test fails when running on 24 cores.
|
||||||
'("-x" "run.parallel")
|
"-x" "cpp_stl_conversion")
|
||||||
'())
|
#:phases
|
||||||
,@(if (system-hurd?)
|
#~(modify-phases %standard-phases
|
||||||
'("-x" "test_class_ref"
|
(add-before 'check 'pre-check
|
||||||
"-x" "test_compiler_directives"
|
;; some tests require access to "$HOME/.cython"
|
||||||
"-x" "test_lang_version")
|
(lambda _
|
||||||
'())
|
(setenv "HOME" "/tmp")
|
||||||
;; This test fails when running on 24 cores.
|
;; Disable compiler optimizations to greatly reduce the running
|
||||||
"-x" "cpp_stl_conversion")))))))
|
;; time of the test suite.
|
||||||
(home-page "https://cython.org/")
|
(setenv "CFLAGS" "-O0"))))))))
|
||||||
(synopsis "C extensions for Python")
|
|
||||||
(description "Cython is an optimising static compiler for both the Python
|
|
||||||
programming language and the extended Cython programming language. It makes
|
|
||||||
writing C extensions for Python as easy as Python itself.")
|
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
;; Needed for scipy and numpy
|
;; Needed for scipy and numpy
|
||||||
(define-public python-cython-0.29.35
|
(define-public python-cython-0.29.35
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue