Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/numba/
Date: Sun, 07 Aug 2022 09:07:47
Message-Id: 1659863240.84f78b601d068377a3ff4637b78e66aee7759eee.andrewammerlaan@gentoo
1 commit: 84f78b601d068377a3ff4637b78e66aee7759eee
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 7 09:07:20 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 7 09:07:20 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=84f78b60
7
8 dev-python/numba: drop 0.54.0, 0.55.0
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/numba/numba-0.54.0.ebuild | 84 -----------------------------------
13 dev-python/numba/numba-0.55.0.ebuild | 85 ------------------------------------
14 2 files changed, 169 deletions(-)
15
16 diff --git a/dev-python/numba/numba-0.54.0.ebuild b/dev-python/numba/numba-0.54.0.ebuild
17 deleted file mode 100644
18 index 125b20daf..000000000
19 --- a/dev-python/numba/numba-0.54.0.ebuild
20 +++ /dev/null
21 @@ -1,84 +0,0 @@
22 -# Copyright 1999-2021 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=8
26 -
27 -PYTHON_COMPAT=( python3_{8..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 -RDEPEND="
43 - >=dev-python/llvmlite-0.37.0[${PYTHON_USEDEP}]
44 - <dev-python/llvmlite-0.38.0
45 - >=dev-python/numpy-1.17.0[${PYTHON_USEDEP}]
46 - threads? ( >=dev-cpp/tbb-2019.5 )
47 -"
48 -BDEPEND="
49 - dev-python/pip[${PYTHON_USEDEP}]
50 - dev-python/versioneer[${PYTHON_USEDEP}]
51 -"
52 -
53 -DISTUTILS_IN_SOURCE_BUILD=1
54 -distutils_enable_tests unittest
55 -distutils_enable_sphinx docs/source dev-python/numpydoc dev-python/sphinx_rtd_theme
56 -
57 -PATCHES=(
58 - "${FILESDIR}/${PN}-0.52.0-skip_tests.patch"
59 -)
60 -
61 -pkg_setup() {
62 - if ! use openmp; then
63 - export NUMBA_DISABLE_OPENMP=1 || die
64 - else
65 - unset NUMBA_DISABLE_OPENMP || die
66 - fi
67 - if ! use threads; then
68 - export NUMBA_DISABLE_TBB=1 || die
69 - else
70 - unset NUMBA_DISABLE_TBB || die
71 - export TBBROOT="${EPREFIX}/usr" || die
72 - fi
73 -}
74 -
75 -python_prepare_all() {
76 - # This conf.py only works in a git repo
77 - if use doc; then
78 - git init -q || die
79 - git config user.email "larry@g.o" || die
80 - git config user.name "Larry the Cow" || die
81 - git add . || die
82 - git commit -m "init" || die
83 - fi
84 - distutils-r1_python_prepare_all
85 -}
86 -
87 -python_compile() {
88 - # FIXME: parallel python building fails. See Portage bug #614464 and
89 - # gentoo/sci issue #1080.
90 - export MAKEOPTS=-j1 || die
91 - distutils-r1_python_compile
92 -}
93 -
94 -# https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests
95 -python_test() {
96 - distutils_install_for_testing
97 - ${EPYTHON} setup.py build_ext --inplace || die \
98 - "${EPYTHON} failed to build_ext"
99 - ${EPYTHON} runtests.py -m $(makeopts_jobs) || die \
100 - "${EPYTHON} failed unittests"
101 -}
102 -
103 -pkg_postinst() {
104 - optfeature "compile cuda code" dev-util/nvidia-cuda-sdk
105 -}
106
107 diff --git a/dev-python/numba/numba-0.55.0.ebuild b/dev-python/numba/numba-0.55.0.ebuild
108 deleted file mode 100644
109 index 342c3894f..000000000
110 --- a/dev-python/numba/numba-0.55.0.ebuild
111 +++ /dev/null
112 @@ -1,85 +0,0 @@
113 -# Copyright 1999-2022 Gentoo Authors
114 -# Distributed under the terms of the GNU General Public License v2
115 -
116 -EAPI=8
117 -
118 -PYTHON_COMPAT=( python3_{8..10} )
119 -
120 -DISTUTILS_USE_SETUPTOOLS=rdepend
121 -inherit optfeature multiprocessing distutils-r1
122 -
123 -DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
124 -HOMEPAGE="https://numba.pydata.org/
125 - https://github.com/numba"
126 -SRC_URI="https://github.com/numba/numba/archive/${PV}.tar.gz -> ${P}.tar.gz"
127 -
128 -LICENSE="BSD"
129 -SLOT="0"
130 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
131 -IUSE="openmp threads"
132 -
133 -RDEPEND="
134 - >=dev-python/llvmlite-0.38.0[${PYTHON_USEDEP}]
135 - <=dev-python/llvmlite-0.39.0
136 - >=dev-python/numpy-1.18.0[${PYTHON_USEDEP}]
137 - <dev-python/numpy-1.22[${PYTHON_USEDEP}]
138 - threads? ( >=dev-cpp/tbb-2021.1 )
139 -"
140 -BDEPEND="
141 - dev-python/pip[${PYTHON_USEDEP}]
142 - dev-python/versioneer[${PYTHON_USEDEP}]
143 -"
144 -
145 -DISTUTILS_IN_SOURCE_BUILD=1
146 -distutils_enable_tests unittest
147 -distutils_enable_sphinx docs/source dev-python/numpydoc dev-python/sphinx_rtd_theme
148 -
149 -PATCHES=(
150 - "${FILESDIR}/${PN}-0.52.0-skip_tests.patch"
151 -)
152 -
153 -pkg_setup() {
154 - if ! use openmp; then
155 - export NUMBA_DISABLE_OPENMP=1 || die
156 - else
157 - unset NUMBA_DISABLE_OPENMP || die
158 - fi
159 - if ! use threads; then
160 - export NUMBA_DISABLE_TBB=1 || die
161 - else
162 - unset NUMBA_DISABLE_TBB || die
163 - export TBBROOT="${EPREFIX}/usr" || die
164 - fi
165 -}
166 -
167 -python_prepare_all() {
168 - # This conf.py only works in a git repo
169 - if use doc; then
170 - git init -q || die
171 - git config user.email "larry@g.o" || die
172 - git config user.name "Larry the Cow" || die
173 - git add . || die
174 - git commit -m "init" || die
175 - fi
176 - distutils-r1_python_prepare_all
177 -}
178 -
179 -python_compile() {
180 - # FIXME: parallel python building fails. See Portage bug #614464 and
181 - # gentoo/sci issue #1080.
182 - export MAKEOPTS=-j1 || die
183 - distutils-r1_python_compile
184 -}
185 -
186 -# https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests
187 -python_test() {
188 - distutils_install_for_testing
189 - ${EPYTHON} setup.py build_ext --inplace || die \
190 - "${EPYTHON} failed to build_ext"
191 - ${EPYTHON} runtests.py -m $(makeopts_jobs) || die \
192 - "${EPYTHON} failed unittests"
193 -}
194 -
195 -pkg_postinst() {
196 - optfeature "compile cuda code" dev-util/nvidia-cuda-sdk
197 -}