1 |
commit: 9fc6f3fdc37c61b587b9e72358dbfac8ebaff43d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 12 14:33:27 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 12 16:06:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fc6f3fd |
7 |
|
8 |
dev-python/setuptools: Drop old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/setuptools/Manifest | 5 -- |
13 |
dev-python/setuptools/setuptools-34.0.2-r1.ebuild | 70 ----------------------- |
14 |
dev-python/setuptools/setuptools-36.0.1.ebuild | 67 ---------------------- |
15 |
dev-python/setuptools/setuptools-38.5.1.ebuild | 70 ----------------------- |
16 |
dev-python/setuptools/setuptools-38.6.1.ebuild | 70 ----------------------- |
17 |
dev-python/setuptools/setuptools-40.0.0.ebuild | 70 ----------------------- |
18 |
6 files changed, 352 deletions(-) |
19 |
|
20 |
diff --git a/dev-python/setuptools/Manifest b/dev-python/setuptools/Manifest |
21 |
index 8adbf039027..0c159302e3b 100644 |
22 |
--- a/dev-python/setuptools/Manifest |
23 |
+++ b/dev-python/setuptools/Manifest |
24 |
@@ -1,8 +1,3 @@ |
25 |
-DIST setuptools-34.0.2.zip 617839 BLAKE2B c06ef384a42430ec8f4d956723d21f70fdcf993e41fb6d6e8b4fd18a7f12eeb957f9aef3e8b81e59f006452bd7dc8f59d6c5dec07ca099156f93fa74b5f4d152 SHA512 8ff6475620fc18e5992900dffd50158bfea980d3e7f2c7c98e8c99180b2f11b3f81c13a60f93516da580def2543a786940cc164dcdc36802d9657c48e45d9266 |
26 |
-DIST setuptools-36.0.1.zip 711296 BLAKE2B c58a4efd8d3a2d574ff6ba5cd01a196fc7ad61a238119ac95714239965875d91e4613d08439c63ab3b9a0794b04ead5c6e8de09839e0306e4d29f47c2c7a7c58 SHA512 cbcd2591d0d8a7591c5d9a1d4173814afa0b984af29f2e34d26a37c357474b043f371978ac224cea12f50834d91babd9f14b137488c4edcd62594e91aff903d8 |
27 |
DIST setuptools-36.7.2.zip 726758 BLAKE2B 8821d3142f2149fbdea4d231052c3990fa7a14c57c421309683c6a65102ce4911850acd5d492087aa0f14a0026da732e47eb9bf971030443fc1b57f9f909aaaa SHA512 746dce135dbacb65565787a20a2611388605e2371c94f0f8803e7712e515e69c270751d16a21f381bf6e8ddc0a1b39494db7d0c67bb32e6230a90c5d517e78f9 |
28 |
-DIST setuptools-38.5.1.zip 737995 BLAKE2B 9772d39928c6633ca529292d646c1c8e96a5a77ed06545af950cc249922837c13722d97de702c1e104581d56e1f808ec3d077041212517f5a51b23aa2e95e734 SHA512 bd04186a6e73cf24440e82aee10fff09889cab53e2e2fbf178bdb1360accf4f787abf8d8421d5e0fcb41005254c091f62d714e8b317ecf68911e2eed87b9fcc4 |
29 |
-DIST setuptools-38.6.1.zip 738985 BLAKE2B 73e5258b9fe2587b5662e80267e59bbc23484815d997a808c83e030e2dffa9a499fa1bed7e9e127cf3b92cb09451e70e590dd2e71135941124fe9d3383f7dc24 SHA512 38685b97a7c4cdfb67846f910afce5faf60ef1519ccb70acdfd2da83ddbfe1a56b5b03e0b8ce5dbc80dcec14847f716d7b23777e2be0ea7e6afd6da3b645b3ef |
30 |
-DIST setuptools-40.0.0.zip 849857 BLAKE2B 6ce687904e0c6ef6cd55557ce848583e1645b6c5cfa80b005b25c20e52fc6985be673f2a77a9f79a3a5effc8e581492429bbf73074525827f539a411c6751373 SHA512 c90d136831af822a7f42bbd7eca4c1f4dd73d14f87182aa1251e70610db877b26bcda8fd0a10f5db0fcd84f9098a35b79a130b3142ade9d0081a538778ae53b7 |
31 |
DIST setuptools-40.6.2.zip 839184 BLAKE2B bc17aeaf7710742b70735f4bd0df2f4d8546eebaae000270b21ce605c83966998a2f51658d243838286f3101d7497c761535a9ffed003ae5e00c81bca8b70ad9 SHA512 3f1aa20e905deb22dda366f479f87cd772238d07e869fdc4f65a7926373414a77b7ddbfd78fd9825154409b3c01d787830354d206a45cdfca879bf35d3b83e03 |
32 |
DIST setuptools-40.6.3.zip 839328 BLAKE2B ddc87213439ce2ad96ba54218bd5b3e41a7c31d670bddb9e4ea058b8ee7dffbe6fcb0e5fd24baf3fb38f5e824fde36aa8dc1e09d7ac37f9375ee351406389cd6 SHA512 6c628b8fc67645bca96ddcd016ec9a685e91690bf98dff077e842cfbd0d8d24de76ac51b3ff238d31551a48819d8f694fee6e9bb422ca954e54c22b4bda0038c |
33 |
|
34 |
diff --git a/dev-python/setuptools/setuptools-34.0.2-r1.ebuild b/dev-python/setuptools/setuptools-34.0.2-r1.ebuild |
35 |
deleted file mode 100644 |
36 |
index 8e8af7fd82f..00000000000 |
37 |
--- a/dev-python/setuptools/setuptools-34.0.2-r1.ebuild |
38 |
+++ /dev/null |
39 |
@@ -1,70 +0,0 @@ |
40 |
-# Copyright 1999-2018 Gentoo Foundation |
41 |
-# Distributed under the terms of the GNU General Public License v2 |
42 |
- |
43 |
-EAPI=6 |
44 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
45 |
-PYTHON_REQ_USE="xml(+)" |
46 |
- |
47 |
-inherit distutils-r1 |
48 |
- |
49 |
-if [[ ${PV} == "9999" ]]; then |
50 |
- EGIT_REPO_URI="https://github.com/pypa/setuptools.git" |
51 |
- inherit git-r3 |
52 |
-else |
53 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
54 |
- KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
55 |
-fi |
56 |
- |
57 |
-DESCRIPTION="Collection of extensions to Distutils" |
58 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
59 |
- |
60 |
-LICENSE="MIT" |
61 |
-SLOT="0" |
62 |
-IUSE="test" |
63 |
- |
64 |
-RDEPEND=" |
65 |
- >=dev-python/packaging-16.8[${PYTHON_USEDEP}] |
66 |
- >=dev-python/six-1.10.0[${PYTHON_USEDEP}] |
67 |
- >=dev-python/appdirs-1.4.0-r1[${PYTHON_USEDEP}] |
68 |
-" |
69 |
-DEPEND="${RDEPEND} |
70 |
- app-arch/unzip |
71 |
- test? ( |
72 |
- dev-python/pip[${PYTHON_USEDEP}] |
73 |
- >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
74 |
- dev-python/mock[${PYTHON_USEDEP}] |
75 |
- ) |
76 |
-" |
77 |
-PDEPEND=" |
78 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
79 |
- |
80 |
-# Force in-source build because build system modifies sources. |
81 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
82 |
- |
83 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
84 |
- |
85 |
-python_prepare_all() { |
86 |
- if [[ ${PV} == "9999" ]]; then |
87 |
- python_setup |
88 |
- ${EPYTHON} bootstrap.py || die |
89 |
- fi |
90 |
- |
91 |
- # disable tests requiring a network connection |
92 |
- rm setuptools/tests/test_packageindex.py || die |
93 |
- |
94 |
- # don't run integration tests |
95 |
- rm setuptools/tests/test_integration.py || die |
96 |
- |
97 |
- distutils-r1_python_prepare_all |
98 |
-} |
99 |
- |
100 |
-python_test() { |
101 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
102 |
- # It tries to sandbox the test in a tempdir |
103 |
- HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" |
104 |
-} |
105 |
- |
106 |
-python_install() { |
107 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
108 |
- distutils-r1_python_install |
109 |
-} |
110 |
|
111 |
diff --git a/dev-python/setuptools/setuptools-36.0.1.ebuild b/dev-python/setuptools/setuptools-36.0.1.ebuild |
112 |
deleted file mode 100644 |
113 |
index ec10905036e..00000000000 |
114 |
--- a/dev-python/setuptools/setuptools-36.0.1.ebuild |
115 |
+++ /dev/null |
116 |
@@ -1,67 +0,0 @@ |
117 |
-# Copyright 1999-2018 Gentoo Foundation |
118 |
-# Distributed under the terms of the GNU General Public License v2 |
119 |
- |
120 |
-EAPI=6 |
121 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) |
122 |
-PYTHON_REQ_USE="xml(+)" |
123 |
- |
124 |
-inherit distutils-r1 |
125 |
- |
126 |
-if [[ ${PV} == "9999" ]]; then |
127 |
- EGIT_REPO_URI="https://github.com/pypa/setuptools.git" |
128 |
- inherit git-r3 |
129 |
-else |
130 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
131 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
132 |
-fi |
133 |
- |
134 |
-DESCRIPTION="Collection of extensions to Distutils" |
135 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
136 |
- |
137 |
-LICENSE="MIT" |
138 |
-SLOT="0" |
139 |
-IUSE="test" |
140 |
- |
141 |
-RDEPEND=" |
142 |
-" |
143 |
-DEPEND="${RDEPEND} |
144 |
- app-arch/unzip |
145 |
- test? ( |
146 |
- dev-python/pip[${PYTHON_USEDEP}] |
147 |
- >=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
148 |
- >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}] |
149 |
- ) |
150 |
-" |
151 |
-PDEPEND=" |
152 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
153 |
- |
154 |
-# Force in-source build because build system modifies sources. |
155 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
156 |
- |
157 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
158 |
- |
159 |
-python_prepare_all() { |
160 |
- if [[ ${PV} == "9999" ]]; then |
161 |
- python_setup |
162 |
- ${EPYTHON} bootstrap.py || die |
163 |
- fi |
164 |
- |
165 |
- # disable tests requiring a network connection |
166 |
- rm setuptools/tests/test_packageindex.py || die |
167 |
- |
168 |
- # don't run integration tests |
169 |
- rm setuptools/tests/test_integration.py || die |
170 |
- |
171 |
- distutils-r1_python_prepare_all |
172 |
-} |
173 |
- |
174 |
-python_test() { |
175 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
176 |
- # It tries to sandbox the test in a tempdir |
177 |
- HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" |
178 |
-} |
179 |
- |
180 |
-python_install() { |
181 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
182 |
- distutils-r1_python_install |
183 |
-} |
184 |
|
185 |
diff --git a/dev-python/setuptools/setuptools-38.5.1.ebuild b/dev-python/setuptools/setuptools-38.5.1.ebuild |
186 |
deleted file mode 100644 |
187 |
index 60944fe5362..00000000000 |
188 |
--- a/dev-python/setuptools/setuptools-38.5.1.ebuild |
189 |
+++ /dev/null |
190 |
@@ -1,70 +0,0 @@ |
191 |
-# Copyright 1999-2018 Gentoo Foundation |
192 |
-# Distributed under the terms of the GNU General Public License v2 |
193 |
- |
194 |
-EAPI=6 |
195 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
196 |
-PYTHON_REQ_USE="xml(+)" |
197 |
- |
198 |
-inherit distutils-r1 |
199 |
- |
200 |
-if [[ ${PV} == "9999" ]]; then |
201 |
- EGIT_REPO_URI="https://github.com/pypa/setuptools.git" |
202 |
- inherit git-r3 |
203 |
-else |
204 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
205 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" |
206 |
-fi |
207 |
- |
208 |
-DESCRIPTION="Collection of extensions to Distutils" |
209 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
210 |
- |
211 |
-LICENSE="MIT" |
212 |
-SLOT="0" |
213 |
-IUSE="test" |
214 |
- |
215 |
-RDEPEND=" |
216 |
-" |
217 |
-DEPEND="${RDEPEND} |
218 |
- app-arch/unzip |
219 |
- test? ( |
220 |
- dev-python/pip[${PYTHON_USEDEP}] |
221 |
- >=dev-python/pytest-3.1.0[${PYTHON_USEDEP}] |
222 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
223 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
224 |
- >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}] |
225 |
- dev-python/wheel[${PYTHON_USEDEP}] |
226 |
- ) |
227 |
-" |
228 |
-PDEPEND=" |
229 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
230 |
- |
231 |
-# Force in-source build because build system modifies sources. |
232 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
233 |
- |
234 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
235 |
- |
236 |
-python_prepare_all() { |
237 |
- if [[ ${PV} == "9999" ]]; then |
238 |
- python_setup |
239 |
- ${EPYTHON} bootstrap.py || die |
240 |
- fi |
241 |
- |
242 |
- # disable tests requiring a network connection |
243 |
- rm setuptools/tests/test_packageindex.py || die |
244 |
- |
245 |
- # don't run integration tests |
246 |
- rm setuptools/tests/test_integration.py || die |
247 |
- |
248 |
- distutils-r1_python_prepare_all |
249 |
-} |
250 |
- |
251 |
-python_test() { |
252 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
253 |
- # It tries to sandbox the test in a tempdir |
254 |
- HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" |
255 |
-} |
256 |
- |
257 |
-python_install() { |
258 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
259 |
- distutils-r1_python_install |
260 |
-} |
261 |
|
262 |
diff --git a/dev-python/setuptools/setuptools-38.6.1.ebuild b/dev-python/setuptools/setuptools-38.6.1.ebuild |
263 |
deleted file mode 100644 |
264 |
index d4b1fa05121..00000000000 |
265 |
--- a/dev-python/setuptools/setuptools-38.6.1.ebuild |
266 |
+++ /dev/null |
267 |
@@ -1,70 +0,0 @@ |
268 |
-# Copyright 1999-2018 Gentoo Authors |
269 |
-# Distributed under the terms of the GNU General Public License v2 |
270 |
- |
271 |
-EAPI=6 |
272 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} ) |
273 |
-PYTHON_REQ_USE="xml(+)" |
274 |
- |
275 |
-inherit distutils-r1 |
276 |
- |
277 |
-if [[ ${PV} == "9999" ]]; then |
278 |
- EGIT_REPO_URI="https://github.com/pypa/setuptools.git" |
279 |
- inherit git-r3 |
280 |
-else |
281 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
282 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
283 |
-fi |
284 |
- |
285 |
-DESCRIPTION="Collection of extensions to Distutils" |
286 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
287 |
- |
288 |
-LICENSE="MIT" |
289 |
-SLOT="0" |
290 |
-IUSE="test" |
291 |
- |
292 |
-RDEPEND=" |
293 |
-" |
294 |
-DEPEND="${RDEPEND} |
295 |
- app-arch/unzip |
296 |
- test? ( |
297 |
- dev-python/pip[${PYTHON_USEDEP}] |
298 |
- >=dev-python/pytest-3.1.0[${PYTHON_USEDEP}] |
299 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
300 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
301 |
- >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}] |
302 |
- dev-python/wheel[${PYTHON_USEDEP}] |
303 |
- ) |
304 |
-" |
305 |
-PDEPEND=" |
306 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
307 |
- |
308 |
-# Force in-source build because build system modifies sources. |
309 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
310 |
- |
311 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
312 |
- |
313 |
-python_prepare_all() { |
314 |
- if [[ ${PV} == "9999" ]]; then |
315 |
- python_setup |
316 |
- ${EPYTHON} bootstrap.py || die |
317 |
- fi |
318 |
- |
319 |
- # disable tests requiring a network connection |
320 |
- rm setuptools/tests/test_packageindex.py || die |
321 |
- |
322 |
- # don't run integration tests |
323 |
- rm setuptools/tests/test_integration.py || die |
324 |
- |
325 |
- distutils-r1_python_prepare_all |
326 |
-} |
327 |
- |
328 |
-python_test() { |
329 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
330 |
- # It tries to sandbox the test in a tempdir |
331 |
- HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" |
332 |
-} |
333 |
- |
334 |
-python_install() { |
335 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
336 |
- distutils-r1_python_install |
337 |
-} |
338 |
|
339 |
diff --git a/dev-python/setuptools/setuptools-40.0.0.ebuild b/dev-python/setuptools/setuptools-40.0.0.ebuild |
340 |
deleted file mode 100644 |
341 |
index 25ed8958758..00000000000 |
342 |
--- a/dev-python/setuptools/setuptools-40.0.0.ebuild |
343 |
+++ /dev/null |
344 |
@@ -1,70 +0,0 @@ |
345 |
-# Copyright 1999-2018 Gentoo Foundation |
346 |
-# Distributed under the terms of the GNU General Public License v2 |
347 |
- |
348 |
-EAPI=6 |
349 |
-PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy{,3} ) |
350 |
-PYTHON_REQ_USE="xml(+)" |
351 |
- |
352 |
-inherit distutils-r1 |
353 |
- |
354 |
-if [[ ${PV} == "9999" ]]; then |
355 |
- EGIT_REPO_URI="https://github.com/pypa/setuptools.git" |
356 |
- inherit git-r3 |
357 |
-else |
358 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip" |
359 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" |
360 |
-fi |
361 |
- |
362 |
-DESCRIPTION="Collection of extensions to Distutils" |
363 |
-HOMEPAGE="https://github.com/pypa/setuptools https://pypi.org/project/setuptools/" |
364 |
- |
365 |
-LICENSE="MIT" |
366 |
-SLOT="0" |
367 |
-IUSE="test" |
368 |
- |
369 |
-RDEPEND=" |
370 |
-" |
371 |
-DEPEND="${RDEPEND} |
372 |
- app-arch/unzip |
373 |
- test? ( |
374 |
- dev-python/pip[${PYTHON_USEDEP}] |
375 |
- >=dev-python/pytest-3.1.0[${PYTHON_USEDEP}] |
376 |
- dev-python/pytest-fixture-config[${PYTHON_USEDEP}] |
377 |
- dev-python/pytest-virtualenv[${PYTHON_USEDEP}] |
378 |
- >=dev-python/backports-unittest-mock-1.2[${PYTHON_USEDEP}] |
379 |
- dev-python/wheel[${PYTHON_USEDEP}] |
380 |
- ) |
381 |
-" |
382 |
-PDEPEND=" |
383 |
- >=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]" |
384 |
- |
385 |
-# Force in-source build because build system modifies sources. |
386 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
387 |
- |
388 |
-DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) |
389 |
- |
390 |
-python_prepare_all() { |
391 |
- if [[ ${PV} == "9999" ]]; then |
392 |
- python_setup |
393 |
- ${EPYTHON} bootstrap.py || die |
394 |
- fi |
395 |
- |
396 |
- # disable tests requiring a network connection |
397 |
- rm setuptools/tests/test_packageindex.py || die |
398 |
- |
399 |
- # don't run integration tests |
400 |
- rm setuptools/tests/test_integration.py || die |
401 |
- |
402 |
- distutils-r1_python_prepare_all |
403 |
-} |
404 |
- |
405 |
-python_test() { |
406 |
- # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg |
407 |
- # It tries to sandbox the test in a tempdir |
408 |
- HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" |
409 |
-} |
410 |
- |
411 |
-python_install() { |
412 |
- export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 |
413 |
- distutils-r1_python_install |
414 |
-} |