commit:     0bae485bac13d1865a651853bfc7721b1341ba8e
Author:     leycec <leycec <AT> gmail <DOT> com>
AuthorDate: Thu May 27 05:32:47 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sat Jun  5 12:49:34 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0bae485b

dev-python/numba: fix #1080

disable parallel build completely and add minimum dependency versions.

Signed-off-by: Cecil Curry <leycec <AT> gmail.com>
Closes: https://github.com/gentoo/sci/pull/1082
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 dev-python/numba/numba-0.53.1.ebuild | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/dev-python/numba/numba-0.53.1.ebuild 
b/dev-python/numba/numba-0.53.1.ebuild
index 7cd6dfe9c..d1ee3f0b7 100644
--- a/dev-python/numba/numba-0.53.1.ebuild
+++ b/dev-python/numba/numba-0.53.1.ebuild
@@ -18,13 +18,20 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 IUSE="openmp threads"
 
+# Minimum dependency versions derive from:
+# * For llvmlite, the "min_llvmlite_version" and "max_llvmlite_version" globals
+#   in "setup.py".
+# * For NumPy, the "min_numpy_run_version" global in "setup.py".
+# * For TBB, #error pragmas in "numba/np/ufunc/tbbpool.cpp" like:
+#   #error "TBB version is too old, 2019 update 5...
+# Lastly, note the "numba -s" subcommand requires "pip" at runtime.
 RDEPEND="
        >=dev-python/llvmlite-0.36.0[${PYTHON_USEDEP}]
        <dev-python/llvmlite-0.37.0
-       dev-python/numpy[${PYTHON_USEDEP}]
+       >=dev-python/numpy-1.15.0[${PYTHON_USEDEP}]
        dev-python/pip[${PYTHON_USEDEP}]
        dev-python/scipy[${PYTHON_USEDEP}]
-       threads? ( dev-cpp/tbb )
+       threads? ( >=dev-cpp/tbb-2019.5 )
 "
 DEPEND="${RDEPEND}"
 
@@ -51,6 +58,13 @@ pkg_setup() {
        fi
 }
 
+python_compile() {
+       # FIXME: parallel python building fails. See Portage bug #614464 and
+       # gentoo/sci issue #1080.
+       export MAKEOPTS=-j1
+       distutils-r1_python_compile
+}
+
 # 
https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests
 python_test() {
        distutils_install_for_testing

Reply via email to