Verified Commit 92bed98f authored by Konrad Hinsen's avatar Konrad Hinsen Committed by Efraim Flashner

Add python24-numarray 1.5.2

parent 45e749ac
Pipeline #155883 passed with stages
in 20 minutes and 21 seconds
;;; Guix Past --- Packages from the past for GNU Guix.
;;; Copyright © 2020 Efraim Flashner <>
;;; Copyright © 2019, 2020 Efraim Flashner <>
;;; Copyright © 2020 Konrad Hinsen <>
;;; This file is part of Guix Past.
......@@ -18,6 +19,9 @@
(define-module (past packages python)
#:use-module (guix)
#:use-module (guix build-system python)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages maths)
#:use-module (gnu packages onc-rpc)
#:use-module (gnu packages python)
#:use-module (gnu packages tcl)
......@@ -111,3 +115,61 @@ read read ssl ssl tcl tcl tk tk ,(version-major+minor (package-version tcl)) ,(v
started with 2.4.0, released on 2004-11-30. Python 2.5 was
released on 2006-09-19.")))
(define-public python24-numarray
(name "python24-numarray")
(version "1.5.2")
(method url-fetch)
(uri (string-append
"mirror://sourceforge/numpy/Old Numarray/" version
"/numarray-" version ".tar.gz"))
(build-system python-build-system)
`(#:python ,python-2.4
#:use-setuptools? #f
(modify-phases %standard-phases
(replace 'build
(lambda _
(invoke "python" "" "config" "build"
"--gencode" "--use_lapack")))
(add-after 'unpack 'find-lapack-and-openblas
(lambda* (#:key inputs #:allow-other-keys)
(let ((lapack (assoc-ref inputs "lapack"))
(blas (assoc-ref inputs "openblas")))
(substitute* ""
(("lapack_libs = .*'m']")
"lapack_libs = ['lapack', 'openblas', 'm']\n")
(("lapack_dirs = .*")
(string-append "lapack_dirs = ['"
lapack "/lib', '" blas "/lib']\n"))
(("lapack_include_dirs = .*")
(string-append "lapack_include_dirs = ['"
lapack "/include', '" blas "/include']\n")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(invoke "python" "" "config"
"install" "--use_lapack"
(string-append "--prefix=" out))))))
#:tests? #f)) ; no test target
`(("lapack" ,lapack)
("openblas" ,openblas)))
(properties '((release-date "2006-08-26")))
(home-page "")
(synopsis "Final numarray release from 2006-08-26")
(description "Numarray and Numeric were the predecessors of NumPy.
Numarray was created as an alternative to Numeric because the latter
was cumbersome to use when efficiency for large array operations was a
priority. Howver, numarray was less efficient for small arrays, and
thus could not replace Numeric. Many packages of the early SciPy
ecosystem supported both Numeric and numarray, with the choice made
at build time.")
(license license:bsd-3)))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment