Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/setuptools/
Date: Thu, 25 Feb 2016 18:56:56
Message-Id: 1456426602.011c05442b0c3da33357e55863444bbe9bf98f0c.jlec@gentoo
1 commit: 011c05442b0c3da33357e55863444bbe9bf98f0c
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 25 18:56:42 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 25 18:56:42 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=011c0544
7
8 dev-python/setuptools: Stop unbundling due to continuos problems coming up
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 dev-python/setuptools/setuptools-20.2.1-r1.ebuild | 59 +++++++++++++++++++++++
14 1 file changed, 59 insertions(+)
15
16 diff --git a/dev-python/setuptools/setuptools-20.2.1-r1.ebuild b/dev-python/setuptools/setuptools-20.2.1-r1.ebuild
17 new file mode 100644
18 index 0000000..6d462a6
19 --- /dev/null
20 +++ b/dev-python/setuptools/setuptools-20.2.1-r1.ebuild
21 @@ -0,0 +1,59 @@
22 +# Copyright 1999-2016 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=6
27 +
28 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
29 +
30 +inherit distutils-r1
31 +
32 +DESCRIPTION="Collection of extensions to Distutils"
33 +HOMEPAGE="https://pypi.python.org/pypi/setuptools"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
39 +IUSE="test"
40 +
41 +RDEPEND=""
42 +# >=dev-python/packaging-16.4[${PYTHON_USEDEP}]
43 +# >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
44 +# "
45 +DEPEND="${RDEPEND}
46 + test? (
47 + >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
48 + dev-python/mock[${PYTHON_USEDEP}]
49 + )
50 +"
51 +# >=dev-python/pyparsing-2.0.6[${PYTHON_USEDEP}]
52 +PDEPEND="
53 + >=dev-python/certifi-2015.11.20[${PYTHON_USEDEP}]"
54 +
55 +# Force in-source build because build system modifies sources.
56 +DISTUTILS_IN_SOURCE_BUILD=1
57 +
58 +DOCS=( README.txt docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
59 +
60 +python_prepare_all() {
61 +# rm -r ./pkg_resources/_vendor || die
62 + # disable tests requiring a network connection
63 + rm setuptools/tests/test_packageindex.py || die
64 +
65 + # don't run integration tests
66 + rm setuptools/tests/test_integration.py || die
67 +
68 + distutils-r1_python_prepare_all
69 +}
70 +
71 +python_test() {
72 + # test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
73 + # It tries to sandbox the test in a tempdir
74 + HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}"
75 +}
76 +
77 +python_install() {
78 + export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
79 + distutils-r1_python_install
80 +}