unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Thomas Danckaert <post@thomasdanckaert.be>
To: ludo@gnu.org
Cc: 27922@debbugs.gnu.org
Subject: [bug#27922] [PATCH] gnu: python-numpy: Update to 1.12.1.
Date: Wed, 27 Sep 2017 08:36:46 +0200 (CEST)	[thread overview]
Message-ID: <20170927.083646.775100604942030136.post@thomasdanckaert.be> (raw)
In-Reply-To: <87efqtgr3z.fsf@gnu.org>

[-- Attachment #1: Type: Text/Plain, Size: 523 bytes --]

From: ludo@gnu.org (Ludovic Courtès)
Subject: Re: [bug#27922] [PATCH] gnu: python-numpy: Update to 1.12.1.
Date: Tue, 26 Sep 2017 22:08:32 +0200

> This is weird: bash-minimal is an implicit input already.  What was 
> the
> error exactly?

Oops, just setting (setenv "SHELL" "bash") is enough. Indeed, bash is 
already there.

(I've been looking in (guix build-system ...) to try to find out the 
default native inputs for the different build systems, but couldn't 
find it.  Where are they set?)

Thomas

[-- Attachment #2: 0001-gnu-python-numpy-Update-to-1.13.1.patch --]
[-- Type: Text/X-Patch, Size: 2155 bytes --]

From f60e8593ca572477e2444a57ad508b9c558316ee Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <post@thomasdanckaert.be>
Date: Tue, 26 Sep 2017 16:26:08 +0200
Subject: [PATCH] gnu: python-numpy: Update to 1.13.1.

* gnu/packages/python.scm (python-numpy, python2-numpy): Update to 1.13.1.
[source]: Download the zip release from pypi instead of a git snapshot.
[native-inputs]: Add unzip.
[arguments]: Set SHELL environment variable.

Co-authored by Leo Famulari <leo@famulari.name>
---
 gnu/packages/python.scm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 5dcb5a05c..6988b44a9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3720,22 +3720,21 @@ between language specification and implementation aspects.")
 (define-public python-numpy
   (package
     (name "python-numpy")
-    (version "1.12.0")
+    (version "1.13.1")
     (source
      (origin
        (method url-fetch)
-       (uri (string-append
-             "https://github.com/numpy/numpy/archive/v" version ".tar.gz"))
-       (file-name (string-append name "-" version ".tar.gz"))
+       (uri (pypi-uri "numpy" version ".zip"))
        (sha256
         (base32
-         "025d4j4aakcp8w5i5diqh812cbbjgac7jszx1j56ivrbi1i8vv7d"))))
+         "1fsgkhh1vdkhmlz8vmdgxnj9n9yaanckxxzz9s0b4p08fqvjic69"))))
     (build-system python-build-system)
     (inputs
      `(("openblas" ,openblas)
        ("lapack" ,lapack)))
     (native-inputs
-     `(("python-cython" ,python-cython)
+     `(("unzip" ,unzip)
+       ("python-cython" ,python-cython)
        ("python-nose" ,python-nose)
        ("gfortran" ,gfortran)))
     (arguments
@@ -3743,6 +3742,8 @@ between language specification and implementation aspects.")
        (modify-phases %standard-phases
         (add-before 'build 'set-environment-variables
          (lambda* (#:key inputs #:allow-other-keys)
+           ;; numpy's distutils uses $SHELL to run external commands.
+          (setenv "SHELL" "bash")
           (call-with-output-file "site.cfg"
             (lambda (port)
               (format port
-- 
2.14.1


  reply	other threads:[~2017-09-27  6:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02 19:49 [bug#27922] [PATCH] gnu: python-numpy: Update to 1.12.1 Leo Famulari
2017-08-02 20:12 ` Marius Bakke
2017-08-02 22:48   ` Leo Famulari
2017-09-04 13:19     ` Ludovic Courtès
2017-09-26  9:53       ` Thomas Danckaert
2017-09-26 11:48         ` Ludovic Courtès
2017-09-26 15:46           ` Leo Famulari
2017-09-26 16:59             ` Thomas Danckaert
2017-09-26 20:08               ` Ludovic Courtès
2017-09-27  6:36                 ` Thomas Danckaert [this message]
2017-09-27 19:35                   ` Ludovic Courtès
2017-09-28 18:32                     ` Thomas Danckaert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170927.083646.775100604942030136.post@thomasdanckaert.be \
    --to=post@thomasdanckaert.be \
    --cc=27922@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).