gnu: python-numpy: Alias to python-numpy-1.20.
Numpy 1.20 is required by numba and umap-learn. Attempts to rename numpy 1.20 to allow it to coexist with numpy 1.21 in the same environment have not been successful. * gnu/packages/python-xyz.scm (python-numpy): Rename to... (python-numpy-next): ...this variable. (python2-numpy): Use python-numpy-next package as parent. (python-numpy-1.20): Inherit from python-numpy-next. (python-numpy): New variable pointing to python-numpy-1.20. (python-numba)[propagated-inputs]: Replace python-numpy-1.20 with python-numpy.master
parent
55870e86d9
commit
a22fb2d164
|
@ -5271,7 +5271,7 @@ writing C extensions for Python as easy as Python itself.")
|
|||
|
||||
;; NOTE: when upgrading numpy please make sure that python-pandas and
|
||||
;; python-scipy still build, as these three packages are often used together.
|
||||
(define-public python-numpy
|
||||
(define-public python-numpy-next
|
||||
(package
|
||||
(name "python-numpy")
|
||||
(version "1.21.3")
|
||||
|
@ -5343,7 +5343,7 @@ capabilities.")
|
|||
;; Numpy 1.16.x are the last versions that support Python 2.
|
||||
(define-public python2-numpy
|
||||
(let ((numpy (package-with-python2
|
||||
(strip-python2-variant python-numpy))))
|
||||
(strip-python2-variant python-numpy-next))))
|
||||
(package
|
||||
(inherit numpy)
|
||||
(version "1.16.5")
|
||||
|
@ -5359,7 +5359,7 @@ capabilities.")
|
|||
;; Needed by python-numba, see https://github.com/numba/numba/issues/7176
|
||||
(define-public python-numpy-1.20
|
||||
(package
|
||||
(inherit python-numpy)
|
||||
(inherit python-numpy-next)
|
||||
(version "1.20.3")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
|
@ -5372,9 +5372,11 @@ capabilities.")
|
|||
;; 92 tests fail, many of them because parts of the temp file name
|
||||
;; accidentally ends up in a comparison.
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments python-numpy)
|
||||
(substitute-keyword-arguments (package-arguments python-numpy-next)
|
||||
((#:tests? _ #t) #f)))))
|
||||
|
||||
(define-public python-numpy python-numpy-1.20)
|
||||
|
||||
;; NOTE: NumPy 1.8 is packaged only for Python 2 because it is of
|
||||
;; interest only for legacy code going back to NumPy's predecessor
|
||||
;; Numeric.
|
||||
|
@ -22037,7 +22039,7 @@ validation testing and application logic.")
|
|||
(invoke "python3" "-m" "numba.runtests" "-v" "-m"))))))))
|
||||
(propagated-inputs
|
||||
`(("python-llvmlite" ,python-llvmlite)
|
||||
("python-numpy" ,python-numpy-1.20)
|
||||
("python-numpy" ,python-numpy)
|
||||
("python-singledispatch" ,python-singledispatch)))
|
||||
(native-inputs ;for tests
|
||||
`(("python-jinja2" ,python-jinja2)
|
||||
|
|
Reference in New Issue