1 |
commit: 769cbc21623df08ce893168ef80425b588306ff5 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 15 18:39:28 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 15 18:39:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=769cbc21 |
7 |
|
8 |
dev-python/numba: drop version 0.53.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.23, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/numba/numba-0.53.1.ebuild | 79 ------------------------------------ |
14 |
1 file changed, 79 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/numba/numba-0.53.1.ebuild b/dev-python/numba/numba-0.53.1.ebuild |
17 |
deleted file mode 100644 |
18 |
index d1ee3f0b7..000000000 |
19 |
--- a/dev-python/numba/numba-0.53.1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,79 +0,0 @@ |
22 |
-# Copyright 1999-2021 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{7..9} ) |
28 |
- |
29 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
-inherit optfeature multiprocessing distutils-r1 |
31 |
- |
32 |
-DESCRIPTION="NumPy aware dynamic Python compiler using LLVM" |
33 |
-HOMEPAGE="https://numba.pydata.org/ |
34 |
- https://github.com/numba" |
35 |
-SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.tar.gz" |
36 |
- |
37 |
-LICENSE="BSD" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
40 |
-IUSE="openmp threads" |
41 |
- |
42 |
-# Minimum dependency versions derive from: |
43 |
-# * For llvmlite, the "min_llvmlite_version" and "max_llvmlite_version" globals |
44 |
-# in "setup.py". |
45 |
-# * For NumPy, the "min_numpy_run_version" global in "setup.py". |
46 |
-# * For TBB, #error pragmas in "numba/np/ufunc/tbbpool.cpp" like: |
47 |
-# #error "TBB version is too old, 2019 update 5... |
48 |
-# Lastly, note the "numba -s" subcommand requires "pip" at runtime. |
49 |
-RDEPEND=" |
50 |
- >=dev-python/llvmlite-0.36.0[${PYTHON_USEDEP}] |
51 |
- <dev-python/llvmlite-0.37.0 |
52 |
- >=dev-python/numpy-1.15.0[${PYTHON_USEDEP}] |
53 |
- dev-python/pip[${PYTHON_USEDEP}] |
54 |
- dev-python/scipy[${PYTHON_USEDEP}] |
55 |
- threads? ( >=dev-cpp/tbb-2019.5 ) |
56 |
-" |
57 |
-DEPEND="${RDEPEND}" |
58 |
- |
59 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
60 |
-distutils_enable_tests unittest |
61 |
-# Only works in a git repository |
62 |
-#distutils_enable_sphinx docs/source dev-python/numpydoc |
63 |
- |
64 |
-PATCHES=( |
65 |
- "${FILESDIR}/${PN}-0.52.0-skip_tests.patch" |
66 |
-) |
67 |
- |
68 |
-pkg_setup() { |
69 |
- if ! use openmp; then |
70 |
- export NUMBA_DISABLE_OPENMP=1 |
71 |
- else |
72 |
- unset NUMBA_DISABLE_OPENMP |
73 |
- fi |
74 |
- if ! use threads; then |
75 |
- export NUMBA_DISABLE_TBB=1 |
76 |
- else |
77 |
- unset NUMBA_DISABLE_TBB |
78 |
- export TBBROOT="${EPREFIX}/usr" |
79 |
- fi |
80 |
-} |
81 |
- |
82 |
-python_compile() { |
83 |
- # FIXME: parallel python building fails. See Portage bug #614464 and |
84 |
- # gentoo/sci issue #1080. |
85 |
- export MAKEOPTS=-j1 |
86 |
- distutils-r1_python_compile |
87 |
-} |
88 |
- |
89 |
-# https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests |
90 |
-python_test() { |
91 |
- distutils_install_for_testing |
92 |
- ${EPYTHON} setup.py build_ext --inplace || die \ |
93 |
- "${EPYTHON} failed to build_ext" |
94 |
- ${EPYTHON} runtests.py -m $(makeopts_jobs) || die \ |
95 |
- "${EPYTHON} failed unittests" |
96 |
-} |
97 |
- |
98 |
-pkg_postinst() { |
99 |
- optfeature "compile cuda code" dev-util/nvidia-cuda-sdk |
100 |
-} |