public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/, dev-python/numpy/files/
Date: Tue, 18 Oct 2016 20:02:36 +0000 (UTC)	[thread overview]
Message-ID: <1476820934.53a3edfb4ad26a364e0886465523a342afea118e.soap@gentoo> (raw)

commit:     53a3edfb4ad26a364e0886465523a342afea118e
Author:     Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
AuthorDate: Mon Oct 17 18:05:23 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Oct 18 20:02:14 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a3edfb

dev-python/numpy: fix broken import in version 1.11.2

The patch comes from upstream:
https://github.com/numpy/numpy/commit/5d0ce36e5be134bb5ead03cab1edeaa60fa355aa

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=596828

Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2582

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/numpy-1.11.2-import-module-fix.patch     | 27 ++++++++++++++++++++++
 dev-python/numpy/numpy-1.11.2-r1.ebuild            |  6 ++++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch b/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch
new file mode 100644
index 00000000..80b710b
--- /dev/null
+++ b/dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch
@@ -0,0 +1,27 @@
+From 5d0ce36e5be134bb5ead03cab1edeaa60fa355aa Mon Sep 17 00:00:00 2001
+From: Jonathan Helmus <jjhelmus@gmail.com>
+Date: Wed, 12 Oct 2016 13:07:42 -0500
+Subject: [PATCH] BUG: import full module path in npy_load_module
+
+Use the full module path when importing importlib.machinery for use in the
+npy_load_module function. Just importing importlib is not sufficient in certain
+cases, for example Python 3.4.
+
+closes #8147
+---
+ numpy/compat/py3k.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py
+index 25cc535..d5bb2e4 100644
+--- a/numpy/compat/py3k.py
++++ b/numpy/compat/py3k.py
+@@ -118,7 +118,7 @@ def npy_load_module(name, fn, info=None):
+         mod : module
+ 
+         """
+-        import importlib
++        import importlib.machinery
+         return importlib.machinery.SourceFileLoader(name, fn).load_module()
+ else:
+     def npy_load_module(name, fn, info=None):

diff --git a/dev-python/numpy/numpy-1.11.2-r1.ebuild b/dev-python/numpy/numpy-1.11.2-r1.ebuild
index a5f25b2..0013fe1 100644
--- a/dev-python/numpy/numpy-1.11.2-r1.ebuild
+++ b/dev-python/numpy/numpy-1.11.2-r1.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=6
 
-PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
 PYTHON_REQ_USE="threads(+)"
 
 FORTRAN_NEEDED=lapack
@@ -37,6 +37,10 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.11.1-no-hardcode-blas.patch
+
+	# This has been fixed upstream but no new release yet
+	# https://github.com/numpy/numpy/commit/5d0ce36e5be134bb5ead03cab1edeaa60fa355aa
+	"${FILESDIR}"/${P}-import-module-fix.patch
 )
 
 src_unpack() {


             reply	other threads:[~2016-10-18 20:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-18 20:02 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-14 21:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/, dev-python/numpy/files/ Michał Górny
2018-07-15 22:22 Michał Górny
2019-01-08 18:54 Virgil Dupras
2019-06-23 12:47 Benda XU
2019-11-20  1:24 Patrick McLean
2020-02-26 19:46 David Seifert
2020-09-16 10:13 Michał Górny
2021-03-28  9:48 Michał Górny
2021-04-30 20:25 Michał Górny
2021-05-14 21:39 Marek Szuba
2021-05-24 22:09 Sam James
2021-09-08  6:16 Michał Górny
2021-12-31 22:49 Sam James
2022-10-08 13:52 Michał Górny
2022-10-25  8:21 Sam James
2022-12-03 17:01 Michał Górny
2023-06-26 13:14 Sam James
2023-07-23 21:43 Sam James
2023-08-01  6:48 Sam James
2023-08-22  4:12 Michał Górny
2023-11-07 20:35 Sam James
2024-07-22  1:20 Michał Górny
2024-10-31 19:19 Michał Górny

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

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

  git send-email \
    --in-reply-to=1476820934.53a3edfb4ad26a364e0886465523a342afea118e.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox