[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
163/217: gnu: python-numpy: Update to 1.21.3 and cleanup.
From: |
guix-commits |
Subject: |
163/217: gnu: python-numpy: Update to 1.21.3 and cleanup. |
Date: |
Sun, 14 Nov 2021 19:21:13 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit b28bea99791898f98684470af37b79ee856129ad
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Oct 23 02:07:52 2021 -0400
gnu: python-numpy: Update to 1.21.3 and cleanup.
* gnu/packages/python-xyz.scm (python-numpy): Update to 1.21.3.
[native-inputs]: Add python-hypothesis and python-pytest-xdist.
[phases]: Delete trailing #t. Do not explicitly reorder the check phase, as
it already runs after the install phase for the python build system.
{configure-blas-lapack}: Rename to...
{configure-blas}: ... this, to cleanup remnants of lapack left in commit
6623d1cd7f3.
{check}: Honor TESTS?. Invoke the tests via the runtests.py script and
enable
parallel tests.
(python2-numpy-1.8)[phases]{configure-blas-lapack}: Likewise (as for the
python-numpy package).
---
gnu/packages/python-xyz.scm | 61 ++++++++++++++++++---------------------------
1 file changed, 24 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0ce8d46..3bca73b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5220,7 +5220,7 @@ writing C extensions for Python as easy as Python
itself.")
(define-public python-numpy
(package
(name "python-numpy")
- (version "1.17.3")
+ (version "1.21.3")
(source
(origin
(method url-fetch)
@@ -5229,38 +5229,32 @@ writing C extensions for Python as easy as Python
itself.")
version "/numpy-" version ".tar.gz"))
(sha256
(base32
- "1ak9dmjja0q90a7fsxli51ypcwssh8c4pb6f8wkrsnf2xgdk6dy9"))))
+ "0s6hy8828yr7fcjiwnym4l8lrknr21gqfkaiawsf86n0hd0a5fyh"))))
(build-system python-build-system)
(inputs
`(("openblas" ,openblas)))
(native-inputs
`(("python-cython" ,python-cython)
+ ("python-hypothesis" ,python-hypothesis)
("python-pytest" ,python-pytest)
+ ("python-pytest-xdist" ,python-pytest-xdist)
("gfortran" ,gfortran)))
(arguments
`(#:phases
(modify-phases %standard-phases
- (add-before 'build 'configure-blas-lapack
+ (add-before 'build 'configure-blas
(lambda* (#:key inputs #:allow-other-keys)
(call-with-output-file "site.cfg"
(lambda (port)
(format port
- "[openblas]
+ "\
+[openblas]
libraries = openblas
library_dirs = ~a/lib
include_dirs = ~a/include
-
-# backslash-n to make emacs happy
-\n[lapack]
-lapack_libs = lapack
-library_dirs = ~a/lib
-include_dirs = ~a/include
"
(assoc-ref inputs "openblas")
- (assoc-ref inputs "openblas")
- (assoc-ref inputs "lapack")
- (assoc-ref inputs "lapack"))))
- #t))
+ (assoc-ref inputs "openblas"))))))
(add-before 'build 'fix-executable-paths
(lambda* (#:key inputs #:allow-other-keys)
;; Make /gnu/store/...-bash-.../bin/sh the default shell,
@@ -5271,21 +5265,17 @@ include_dirs = ~a/include
;; Use "gcc" executable, not "cc".
(substitute* "numpy/distutils/system_info.py"
(("c = distutils\\.ccompiler\\.new_compiler\\(\\)")
- "c = distutils.ccompiler.new_compiler();
c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc
-shared')"))
- #t))
- ;; Tests can only be run after the library has been installed and not
- ;; within the source directory.
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key outputs inputs #:allow-other-keys)
- ;; Make installed package available for running the tests
- (add-installed-pythonpath inputs outputs)
- ;; Make sure "f2py" etc is found.
- (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
- ":" (getenv "PATH")))
- (with-directory-excursion "/tmp"
- (invoke "python" "-c"
- "import numpy; numpy.test(verbose=2)")))))))
+ "c = distutils.ccompiler.new_compiler();
c.set_executables(compiler='gcc',compiler_so='gcc',linker_exe='gcc',linker_so='gcc
-shared')"))))
+ (replace 'check
+ (lambda* (#:key tests? outputs inputs #:allow-other-keys)
+ (when tests?
+ ;; Make installed package available for running the tests.
+ (add-installed-pythonpath inputs outputs)
+ ;; Make sure "f2py" etc is found.
+ (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
+ ":" (getenv "PATH")))
+ (invoke "./runtests.py"
+ "-j" (number->string (parallel-job-count)))))))))
(home-page "https://numpy.org")
(synopsis "Fundamental package for scientific computing with Python")
(description "NumPy is the fundamental package for scientific computing
@@ -5332,21 +5322,18 @@ capabilities.")
(substitute-keyword-arguments (package-arguments python2-numpy)
((#:phases phases)
`(modify-phases ,phases
- (replace 'configure-blas-lapack
+ (replace 'configure-blas
(lambda* (#:key inputs #:allow-other-keys)
(call-with-output-file "site.cfg"
(lambda (port)
(format port
"[openblas]
-libraries = openblas,lapack
-library_dirs = ~a/lib:~a/lib
-include_dirs = ~a/include:~a/include
+libraries = openblas
+library_dirs = ~a/lib
+include_dirs = ~a/include
"
(assoc-ref inputs "openblas")
- (assoc-ref inputs "lapack")
- (assoc-ref inputs "openblas")
- (assoc-ref inputs "lapack"))))
- #t))))))
+ (assoc-ref inputs "openblas"))))))))))
(native-inputs
`(("python2-nose" ,python2-nose)))
(description "NumPy is the fundamental package for scientific computing
- 137/217: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., (continued)
- 137/217: build: glib-or-gtk: Generate the gdk-pixbuf-loaders cache file in a phase., guix-commits, 2021/11/14
- 141/217: gnu: librsvg: Preserve the loaders.cache file., guix-commits, 2021/11/14
- 142/217: gnu: gawk: Use regular bash to cope with test suite failures., guix-commits, 2021/11/14
- 150/217: gnu: curl: Update to 7.79.1., guix-commits, 2021/11/14
- 146/217: gnu: nspr: Normalize inputs., guix-commits, 2021/11/14
- 144/217: gnu: cdparanoia: Disable parallel build., guix-commits, 2021/11/14
- 149/217: gnu: meson: Update to 0.60.0., guix-commits, 2021/11/14
- 148/217: gnu: jsoncpp: Apply patch to regular package., guix-commits, 2021/11/14
- 157/217: gnu: python-dateutil: Update to 2.8.2., guix-commits, 2021/11/14
- 154/217: gnu: python-dbusmock: Update to 0.24.0., guix-commits, 2021/11/14
- 163/217: gnu: python-numpy: Update to 1.21.3 and cleanup.,
guix-commits <=
- 159/217: gnu: gstreamer: Disable the pipelines-seek test., guix-commits, 2021/11/14
- 158/217: gnu: gdk-pixbuf: Remove obsolete jasper support., guix-commits, 2021/11/14
- 168/217: gnu: Add cling., guix-commits, 2021/11/14
- 170/217: gnu: gtkmm-3: Update to 3.24.5., guix-commits, 2021/11/14
- 178/217: gnu: duktape: Install a pkg-config file., guix-commits, 2021/11/14
- 180/217: gnu: network-manager: Update to 1.32.12., guix-commits, 2021/11/14
- 187/217: gnu: Add webkitgtk-with-libsoup2, guix-commits, 2021/11/14
- 198/217: gnu: ansible: Update to 4.7.0., guix-commits, 2021/11/14
- 207/217: gnu: Add python-sphinxcontrib-asyncio., guix-commits, 2021/11/14
- 195/217: gnu: openblas: Update to 0.3.18., guix-commits, 2021/11/14