Procházet zdrojové kódy

gn: python24-numarray pushed to guix-past.

gn-latest-20200725
Efraim Flashner před 4 měsíci
rodič
revize
3cd9471c7c
Podepsáno: efraim <efraim@flashner.co.il> ID GPG klíče: 41AAE7DCCA3D8351
1 změnil soubory, kde provedl 0 přidání a 57 odebrání
  1. +0
    -57
      gn/packages/python24.scm

+ 0
- 57
gn/packages/python24.scm Zobrazit soubor

@@ -226,63 +226,6 @@ spreadsheets without the need for COM objects.")
`(("python24-setuptools" ,python24-setuptools)
,@(package-native-inputs base))))))

(define-public python24-numarray
(package
(name "python24-numarray")
(version "1.5.2")
(source
(origin
(method url-fetch)
(uri (string-append
"mirror://sourceforge/numpy/Old Numarray/" version
"/numarray-" version ".tar.gz"))
(sha256
(base32
"0x1i4j7yni7k4p9kjxs1lgln1psdmyrz65wp2yr35yn292iw2vbg"))))
(build-system python-build-system)
(arguments
`(#:python ,python-2.4
#:use-setuptools? #f
#:phases
(modify-phases %standard-phases
(replace 'build
(lambda _
(invoke "python" "setup.py" "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* "cfg_packages.py"
(("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")))
#t)))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(invoke "python" "setup.py" "config"
"install" "--use_lapack"
(string-append "--prefix=" out))))))
#:tests? #f)) ; no test target
(inputs
`(("lapack" ,lapack)
("openblas" ,openblas)))
(home-page "http://www.numpy.org/")
(synopsis "Array processing of numbers, strings, records and objects")
(description "Numarray is an array processing package designed to
efficiently manipulate large multi-dimensional arrays. Numarray is modelled
after Numeric and features c-code generated from python template scripts, the
capacity to operate directly on arrays in files, and improved type promotions.
Numarray provides support for manipulating arrays consisting of numbers,
strings, records, or objects using the same basic infrastructure and syntax.")
(license license:bsd-3)))

(define-public python24-pp
(package
(name "python24-pp")


Načítá se…
Zrušit
Uložit