diff options
author | leycec <leycec@gmail.com> | 2021-05-27 01:32:47 -0400 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2021-06-05 14:49:34 +0200 |
commit | 0bae485bac13d1865a651853bfc7721b1341ba8e (patch) | |
tree | 2f0da2978c27741ac388b1c5e9cfb72e2ffbf434 | |
parent | media-libs/libgfx: Remove test use flag (diff) | |
download | sci-0bae485bac13d1865a651853bfc7721b1341ba8e.tar.gz sci-0bae485bac13d1865a651853bfc7721b1341ba8e.tar.bz2 sci-0bae485bac13d1865a651853bfc7721b1341ba8e.zip |
dev-python/numba: fix #1080
disable parallel build completely and add minimum dependency versions.
Signed-off-by: Cecil Curry <leycec@gmail.com>
Closes: https://github.com/gentoo/sci/pull/1082
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r-- | dev-python/numba/numba-0.53.1.ebuild | 18 |
1 files 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 |