diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-12-01 23:14:31 +0000 |
---|---|---|
committer | Aisha Tammy <gentoo@aisha.cc> | 2020-12-01 23:14:40 +0000 |
commit | cfb477681ef2ce2506acffc31b7ae151973e213e (patch) | |
tree | 7356025c9a1f1733ba029925506e15c213fdbdf3 /dev-python | |
parent | profiles/package.mask: removed packages (diff) | |
download | sci-cfb477681ef2ce2506acffc31b7ae151973e213e.tar.gz sci-cfb477681ef2ce2506acffc31b7ae151973e213e.tar.bz2 sci-cfb477681ef2ce2506acffc31b7ae151973e213e.zip |
dev-python/numba: version bump to 0.52.0
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/numba/Manifest | 1 | ||||
-rw-r--r-- | dev-python/numba/numba-0.52.0.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/numba/Manifest b/dev-python/numba/Manifest index 65e1c6d17..150455e3d 100644 --- a/dev-python/numba/Manifest +++ b/dev-python/numba/Manifest @@ -1 +1,2 @@ DIST numba-0.51.2.tar.gz 2124132 BLAKE2B 70bd90b54850a0158d47c70701598b699a6a94edc46b4e50aedf4d9daed06823063ff16caaa65a92f86b8d106a9e9605bf93790ef75589c4541bfde7fb3b27d1 SHA512 82207ecce7cf09346bb81583c130475b9e7a98009f08c73d8d2c49cff7ae71328f5d29f4ee4cb3dff1d7d3a79aa59f7205d18270acdae5ec0fa8cfa58fa7bb2d +DIST numba-0.52.0.tar.gz 2173287 BLAKE2B 1186bad07fabd7109069828302ff63255b7ef7c81675f32dd46dce0549ea48d29296c5150bf6b18a29253549dfa9c2af4fa5bc33d13bffd2bd38ca7ba7c25068 SHA512 a490ed87af8f2c77c5cc5818eaff7b3e8a6de1ed5091dc53178e4341045522c887fb67287a2a97ee2ef3e025fbb166797b51ad350a6c394aa2a4cee39e920c49 diff --git a/dev-python/numba/numba-0.52.0.ebuild b/dev-python/numba/numba-0.52.0.ebuild new file mode 100644 index 000000000..5625e679f --- /dev/null +++ b/dev-python/numba/numba-0.52.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6..9} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit eutils multiprocessing distutils-r1 + +DESCRIPTION="NumPy aware dynamic Python compiler using LLVM" +HOMEPAGE="https://numba.pydata.org/ + https://github.com/numba" +SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="openmp threads" + +RDEPEND="${PYTHON_DEPS} + >=dev-python/llvmlite-0.35.0[${PYTHON_USEDEP}] + <dev-python/llvmlite-0.36.0 + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + threads? ( dev-cpp/tbb ) +" +DEPEND="${RDEPEND}" + +DISTUTILS_IN_SOURCE_BUILD=1 +distutils_enable_tests unittest + +# doc system is another huge mess, skip it +PATCHES=( + "${FILESDIR}/${P}-skip_tests.patch" +) + +pkg_setup() { + if ! use openmp; then + export NUMBA_DISABLE_OPENMP=1 + else + unset NUMBA_DISABLE_OPENMP + fi + if ! use threads; then + export NUMBA_DISABLE_TBB=1 + else + unset NUMBA_DISABLE_TBB + export TBBROOT="${EPREFIX}/usr" + fi +} + +# https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests +python_test() { + distutils_install_for_testing + ${EPYTHON} setup.py build_ext --inplace || die \ + "${EPYTHON} failed to build_ext" + ${EPYTHON} runtests.py -m $(makeopts_jobs) || die \ + "${EPYTHON} failed unittests" +} + +# https://numba.pydata.org/numba-doc/latest/user/installing.html +python_install_all() { + distutils-r1_python_install_all +} + +pkg_postinst() { + optfeature "compile cuda code" dev-util/nvidia-cuda-sdk +} |