From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5AE1913834B for ; Tue, 18 Oct 2016 20:02:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42AB4E0B6D; Tue, 18 Oct 2016 20:02:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A812E0B6D for ; Tue, 18 Oct 2016 20:02:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8BECA341646 for ; Tue, 18 Oct 2016 20:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C122F304 for ; Tue, 18 Oct 2016 20:02:36 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1476820934.53a3edfb4ad26a364e0886465523a342afea118e.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/numpy/, dev-python/numpy/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/numpy/files/numpy-1.11.2-import-module-fix.patch dev-python/numpy/numpy-1.11.2-r1.ebuild X-VCS-Directories: dev-python/numpy/files/ dev-python/numpy/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 53a3edfb4ad26a364e0886465523a342afea118e X-VCS-Branch: master Date: Tue, 18 Oct 2016 20:02:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6dd29cdd-993c-45dd-a22f-52d5eb98f552 X-Archives-Hash: 66e654c2c84b9e111b7f576aedfff6ca commit: 53a3edfb4ad26a364e0886465523a342afea118e Author: Mathy Vanvoorden vanvoorden be> AuthorDate: Mon Oct 17 18:05:23 2016 +0000 Commit: David Seifert gentoo 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 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 +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() {