GNU bug report logs - #29796
[PATCH 2/2] gnu: Add python2-numpy@1.8

Previous Next

Package: guix-patches;

Reported by: Konrad Hinsen <konrad.hinsen <at> fastmail.net>

Date: Thu, 21 Dec 2017 06:55:01 UTC

Severity: normal

Tags: patch

Done: Danny Milosavljevic <dannym <at> scratchpost.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#29796: closed ([PATCH 2/2] gnu: Add python2-numpy <at> 1.8)
Date: Sat, 23 Dec 2017 22:02:05 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 23 Dec 2017 23:01:29 +0100
with message-id <20171223230129.52e6aa27 <at> scratchpost.org>
and subject line Re: [bug#29796] [PATCH 2/2] gnu: Add python2-numpy <at> 1.8
has caused the debbugs.gnu.org bug report #29796,
regarding [PATCH 2/2] gnu: Add python2-numpy <at> 1.8
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
29796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29796
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
To: guix-patches <at> gnu.org
Subject: [PATCH 2/2] gnu: Add python2-numpy <at> 1.8
Date: Wed, 20 Dec 2017 17:19:14 +0100
NumPy 1.8 is the last version that contains the submodule numpy.oldnumeric
that ensures compatibility with code written for NumPy's predecessor Numeric.
---
 gnu/packages/python.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e768b60ed..3ebf3f2e2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2694,6 +2694,49 @@ capabilities.")
 (define-public python2-numpy-next
   (package-with-python2 python-numpy-next))
 
+;; 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.
+(define-public python2-numpy-1.8
+  (package (inherit python2-numpy)
+    (version "1.8.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://github.com/numpy/numpy/archive/v" version ".tar.gz"))
+       (file-name (string-append "python2-numpy-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0sc20gz1b17xnyrkp5frca3ql5qfalpv916hfg2kqxpwr6jg0f1g"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments python2-numpy)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (replace 'configure-blas-lapack
+             (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
+"
+                           (assoc-ref inputs "openblas")
+                           (assoc-ref inputs "lapack")
+                           (assoc-ref inputs "openblas")
+                           (assoc-ref inputs "lapack"))))
+               #t))))))
+    (description "NumPy is the fundamental package for scientific computing
+with Python.  It contains among other things: a powerful N-dimensional array
+object, sophisticated (broadcasting) functions, tools for integrating C/C++
+and Fortran code, useful linear algebra, Fourier transform, and random number
+capabilities.  Version 1.8 is the last one to contain the numpy.oldnumeric API
+that includes the compatibility layer numpy.oldnumeric with NumPy's predecessor
+Numeric.")
+    (license license:bsd-3)))
+
 (define-public python-munch
   (package
     (name "python-munch")
-- 
2.14.3 (Apple Git-98)



[Message part 3 (message/rfc822, inline)]
From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Konrad Hinsen <konrad.hinsen <at> fastmail.net>
Cc: 29796-done <at> debbugs.gnu.org
Subject: Re: [bug#29796] [PATCH 2/2] gnu: Add python2-numpy <at> 1.8
Date: Sat, 23 Dec 2017 23:01:29 +0100
Thanks!

Applied to master as a08d5a07a921af93487c1b52cd0c1fb8fbe27b51 after some changes to the commit message.


This bug report was last modified 7 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.