1 |
commit: e3d3386c7692eb396a4e2b82e59ddde36ab21d5e |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 23 01:43:48 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 23 01:43:48 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3d3386c |
7 |
|
8 |
dev-python/pip: allow users to install system wide if they really want to. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-python/pip/pip-9.0.1-r2.ebuild | 85 ++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 85 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pip/pip-9.0.1-r2.ebuild b/dev-python/pip/pip-9.0.1-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..dfb1f988cb3 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pip/pip-9.0.1-r2.ebuild |
20 |
@@ -0,0 +1,85 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) |
27 |
+PYTHON_REQ_USE="threads(+)" |
28 |
+ |
29 |
+inherit eutils bash-completion-r1 distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Installs python packages -- replacement for easy_install" |
32 |
+HOMEPAGE="https://pip.pypa.io/ https://pypi.python.org/pypi/pip/ https://github.com/pypa/pip/" |
33 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="MIT" |
36 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
37 |
+SLOT="0" |
38 |
+ |
39 |
+IUSE="-vanilla" |
40 |
+ |
41 |
+# Check pip/_vendor/vendor.txt for this |
42 |
+#VENDOR_DEPEND=" |
43 |
+# >=dev-python/distlib-0.2.2[${PYTHON_USEDEP}] |
44 |
+# >=dev-python/html5lib-1.0b8[${PYTHON_USEDEP}] |
45 |
+# >=dev-python/six-1.10.0${PYTHON_USEDEP}] |
46 |
+# >=dev-python/colorama-0.3.6[${PYTHON_USEDEP}] |
47 |
+# >=dev-python/requests-2.9.1-r2[${PYTHON_USEDEP}] |
48 |
+# >=dev-python/CacheControl-0.11.6[${PYTHON_USEDEP}] |
49 |
+# >=dev-python/lockfile-0.12.2[${PYTHON_USEDEP}] |
50 |
+# >=dev-python/progress-1.2[${PYTHON_USEDEP}] |
51 |
+# >=dev-python/packaging-16.5[${PYTHON_USEDEP}] |
52 |
+# >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] |
53 |
+# >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] |
54 |
+# virtual/python-ipaddress[${PYTHON_USEDEP}] |
55 |
+#" |
56 |
+# https://github.com/pypa/pip/issues/3057 |
57 |
+#RDEPEND="${VENDOR_DEPEND} |
58 |
+# >=dev-python/setuptools-19.2[${PYTHON_USEDEP}] |
59 |
+# <dev-python/setuptools-19.4[${PYTHON_USEDEP}] |
60 |
+#" |
61 |
+#DEPEND="${RDEPEND}" |
62 |
+ |
63 |
+# required test data isn't bundled with the tarball |
64 |
+RESTRICT="test" |
65 |
+ |
66 |
+#PATCHES=( |
67 |
+# "${FILESDIR}"/${PN}-6.0.2-disable-version-check.patch |
68 |
+# "${FILESDIR}"/${PN}-8.0.0-unbundle.patch |
69 |
+# ) |
70 |
+ |
71 |
+#python_prepare_all() { |
72 |
+# mv pip/_vendor/__init__.py "${T}" || die |
73 |
+# rm -r pip/_vendor/* || die |
74 |
+# mv "${T}"/__init__.py pip/_vendor/__init__.py || die |
75 |
+# |
76 |
+# distutils-r1_python_prepare_all |
77 |
+#} |
78 |
+ |
79 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
80 |
+RDEPEND="${DEPEND}" |
81 |
+ |
82 |
+PATCHES=( |
83 |
+ "${FILESDIR}/${PN}-9.0.1-disable-version-check.patch" |
84 |
+) |
85 |
+ |
86 |
+python_prepare_all() { |
87 |
+ if ! use vanilla; then |
88 |
+ epatch "${FILESDIR}/pip-disable-system-install.patch" |
89 |
+ fi |
90 |
+ distutils-r1_python_prepare_all |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ local DOCS=( AUTHORS.txt docs/*.rst ) |
95 |
+ distutils-r1_python_install_all |
96 |
+ |
97 |
+ COMPLETION="${T}"/completion.tmp |
98 |
+ |
99 |
+ "${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die |
100 |
+ newbashcomp "${COMPLETION}" ${PN} |
101 |
+ |
102 |
+ "${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die |
103 |
+ insinto /usr/share/zsh/site-functions |
104 |
+ newins "${COMPLETION}" _pip |
105 |
+} |