diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/pip |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/pip')
-rw-r--r-- | dev-python/pip/Manifest | 13 | ||||
-rw-r--r-- | dev-python/pip/files/pip-6.0.2-disable-version-check.patch | 14 | ||||
-rw-r--r-- | dev-python/pip/files/pip-7.1.2-unbundle.patch | 34 | ||||
-rw-r--r-- | dev-python/pip/files/pip-8.0.0-unbundle.patch | 43 | ||||
-rw-r--r-- | dev-python/pip/files/pip-9.0.1-disable-version-check.patch | 32 | ||||
-rw-r--r-- | dev-python/pip/files/pip-disable-system-install.patch | 29 | ||||
-rw-r--r-- | dev-python/pip/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pip/pip-7.1.2.ebuild | 66 | ||||
-rw-r--r-- | dev-python/pip/pip-9.0.1-r1.ebuild | 77 | ||||
-rw-r--r-- | dev-python/pip/pip-9.0.1-r2.ebuild | 84 |
10 files changed, 404 insertions, 0 deletions
diff --git a/dev-python/pip/Manifest b/dev-python/pip/Manifest new file mode 100644 index 000000000000..df2545285c4f --- /dev/null +++ b/dev-python/pip/Manifest @@ -0,0 +1,13 @@ +AUX pip-6.0.2-disable-version-check.patch 465 SHA256 4e8de45f65f0255615949fd10e168a8a46fbb7f301699145f6c774bf3cb9b1a1 SHA512 fd3413fea4649aa6a34ff7a23e7442267dc07307aeb25398e4620d108ab144703db7431e2a158612d9ee67e448d1d66db7e8103364aa6635844672bea16c7d28 WHIRLPOOL c5d6b94c777d988c4a91bcf0a7c4f10183cf5d9a0467a386c5df446ebf659b0b7c86404da844e578691fbdc75106fe8e8adb572eeb1d7ce53cb15d5602a146e4 +AUX pip-7.1.2-unbundle.patch 1496 SHA256 8d74c370ba7b313843e2eec7e23e738c4133cf17660938a74b687144725f8f5c SHA512 c0daf49d9a596a188fd54751b8ee7333f1c3187657b677a6f61ab9820483b388c3475b5fecb887115aaa34208070a15b56a8eb5e0a4639c3732840cf17a6f16a WHIRLPOOL 8e9065a1d2a621877756a05a131a6c413818eba3c7a2ca229b61491e0ecf591027cc719c89ea4131797b07e781f915ee92d55d6e2e7e48478f1f67493e3269b1 +AUX pip-8.0.0-unbundle.patch 1985 SHA256 dc71b17d6519f96f7fc5e7337a6e1bd4649f8bc90b82287caac570419c33ec07 SHA512 3b5f96160623eb2fad9c5978fc6512b21d48d5b91cb09c9d43deaee6de3c843af137a5df11c83b0d8395625482162d8cf40748b072692b305d6ab1220f3fb0c6 WHIRLPOOL c4463811dc2bac1ca3b4ef24e03cce650fb8603826a637d40917023adc9d35bc55c06f6e20165c92bf7d0f4731d1ee8a996f46570227a864fb0f635feaaee960 +AUX pip-9.0.1-disable-version-check.patch 1031 SHA256 52af2bf2c60498bf90555cf260318d4995a8bd23ffec9ae8e136a83a8c664b8c SHA512 8b5764d3ecdbfc871bdf051b41d9610d5028bc3b95a4bf990db46325d10e5d559449ec97ab052686148d6ab6abfa630fb38101c726b6648d19fa94ac593b0a28 WHIRLPOOL edada578418d7ea8b30161a0bdc12343465932c9f645a20bc2343baa25d807a6ed484a8fe154187ba4b07ce740eeca6939f1ef89c30d6fe681ba733d24a530f1 +AUX pip-disable-system-install.patch 1070 SHA256 c7099b61b806019a9fc4ce946fcce066f85f8a08fc4c090f745506627a9e7ced SHA512 bb0a9a32b2eac0a12276c3f0527534226c03868300f54945d20eec16902ad51cbfdace9d79b0caa304bc641323194031a5ca9e5e784366a44527441bd0f3c231 WHIRLPOOL d43b4f2027bdad7585a9c633f868767f1c673375db2635711dfe019847422d2740b8d41e5a11091548f35c9ca67a9c390168b9b3da0e3fc3190577f4eb62a064 +DIST pip-7.1.2.tar.gz 1049170 SHA256 ca047986f0528cfa975a14fb9f7f106271d4e0c3fe1ddced6c1db2e7ae57a477 SHA512 78082afe6b559bf87f91ae9b6d304cfbfce00206e09be42fdae9d449a55cd8d968df6873e834191d0b0e6baae29e72eb3eee42386ff7c5dc9c29b6c28b754449 WHIRLPOOL 953fdc9104f3ac34c9104ec93948f58c4b0e193f18da60d3247d801c283c574490f8b91146e4278888c0b920090f537095c1a1693ca352d062dd98473390fdc9 +DIST pip-9.0.1.tar.gz 1197370 SHA256 09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d SHA512 ee59efb4b009ff6543b7afdea99b9cbbee1981ecc03af586acda76674024d3b66dab23049e68f3da9448734984619fc1eaba6e965c9dd3d731973376c8a42e25 WHIRLPOOL c97a5e9d03943437873d3a49166c28bccf3e0d1f9efe8f500a730607bffcfc26184a6785f1ee55b6867bc4dbd0e77334da7dcf22bd6ba9ae26949c76b6a1c734 +EBUILD pip-7.1.2.ebuild 1958 SHA256 7cfc76f156ea815ecea0de250b0a7be95c9a585c12f96ffe60a6474332744d87 SHA512 b249ca4a90242f55660da9b63e2bebf706b3a2abf0947b5906ae1e3d39b5a083114ae22965fb62a95a64faff8058c1ab16afdb0145ed534917a570fa11008742 WHIRLPOOL d72688809da684e481efcaca2ccbd8ac3c3fbd9b2e00cc0913d0aef10d8f456291b1cfa03cd152773bc55a2bfdb6a5cf904edb4a4be744cfed39589e1d08f2f4 +EBUILD pip-9.0.1-r1.ebuild 2328 SHA256 a703b4ea227da4471e184ad6e10388f34fbb0aecefd4f38a2c1fd39f2b635ebe SHA512 064170d1b0adb1d4032b603b20dab7b5ef5c33a44381fa2e5c4d9c7c01a0db51d6b3cf1bbef7ecbb3979aa00c5a25be5504b26629c565578688fa0faa8618436 WHIRLPOOL 95d1049b174b3fbeb3c3db7d5e5e329ba37a9f6c5ed45d244a7d0a81bc160e6de30bff59d9db44b52e2e7d4fba77ea456213903290e4305f527cae8a579982c7 +EBUILD pip-9.0.1-r2.ebuild 2463 SHA256 51a0cd6fb52a32ef315f2ed41beac4c883541aad264797f52daa1f0d5e38fcc6 SHA512 698eb01a7a1bdfc634a754f009bace1b08f7ee298d598fc0655991632770287d6223a69baa4f008f3d1c3afc1c451894b146e98f08b72ea13677e01f43ece050 WHIRLPOOL 96f192fdc285d373fd94cda2f7c736e4844e06144237785ae0c4a612e58fafc99665488bb3bea062eea7ae47d07898c40101f795066a993702a1800ca8f4deb5 +MISC ChangeLog 11200 SHA256 91fe2e231e7c376bd5ecf446535690774906b58ca206551bcbf2f3ad71088379 SHA512 951166bd271ccb88da6cc0eb0afa05a8eb7b4054ae4fead88715169ccd40048baf7f8af0284e258954e25f49c51837f506850dd086205297996f252dcec99ffc WHIRLPOOL bf985861f04fcd8aa33ed5ba18cbdd1780ae0fd0a63cf0586ebcaaca5e5e7c924ca209394ee0bfec8fa880cdc94256233f0cb3c6e33d53dcef155cc39b21607c +MISC ChangeLog-2015 8278 SHA256 701685d86a23007d98563f63af64779ebf3c22f4908fcaf8f01715b75dc4ea6e SHA512 27483f01076204c58400635cb61cdb6d24c642bfd3f24bc163b1f64705bda093ae964cf82304a6f92d0c3be30fecccebabe9230ade7b6530a463267271238845 WHIRLPOOL 2763c63a7f6c9c1a2145d3249cd45783a7d3fbf5acf5091013d0eaaf852b8268a486794c02a37620786fc706efd72156b33421648f5e4f70b4b8d217666387e0 +MISC metadata.xml 366 SHA256 7724844eefe00bd38d84325394c6678d5d22dfe764a098b6d6c229f0f20546b9 SHA512 43ccb12f2797cb70b59ff495d149c32c813e5145c65521eda9a86f675eac7756eefadeb9f4ca977e8e8c7019bae144b445240e6d7128da771eaf6d19559336f6 WHIRLPOOL c93513f7503b46162ce3c5f5b613019d4c36a262312539519c605fa40cac99263ec4291fc162d363d15299ebb8df94c902ab422e13a62dc4f7b913270b5e6b80 diff --git a/dev-python/pip/files/pip-6.0.2-disable-version-check.patch b/dev-python/pip/files/pip-6.0.2-disable-version-check.patch new file mode 100644 index 000000000000..a192c228a997 --- /dev/null +++ b/dev-python/pip/files/pip-6.0.2-disable-version-check.patch @@ -0,0 +1,14 @@ +Don't check PyPI for new versions of pip by default, updates will occur when +new releases are added to the tree. + +--- pip-6.0.2/pip/cmdoptions.py ++++ pip-6.0.2/pip/cmdoptions.py +@@ -404,7 +404,7 @@ + "--disable-pip-version-check", + dest="disable_pip_version_check", + action="store_true", +- default=False, ++ default=True, + help="Don't periodically check PyPI to determine whether a new version " + "of pip is available for download.") + diff --git a/dev-python/pip/files/pip-7.1.2-unbundle.patch b/dev-python/pip/files/pip-7.1.2-unbundle.patch new file mode 100644 index 000000000000..70adc20ead53 --- /dev/null +++ b/dev-python/pip/files/pip-7.1.2-unbundle.patch @@ -0,0 +1,34 @@ + pip/_vendor/__init__.py | 13 +++++-------- + 1 file changed, 5 insertions(+), 8 deletions(-) + +diff --git a/pip/_vendor/__init__.py b/pip/_vendor/__init__.py +index ef8851d..349d022 100644 +--- a/pip/_vendor/__init__.py ++++ b/pip/_vendor/__init__.py +@@ -14,7 +14,7 @@ import sys + # Downstream redistributors which have debundled our dependencies should also + # patch this value to be true. This will trigger the additional patching + # to cause things like "six" to be available as pip. +-DEBUNDLED = False ++DEBUNDLED = True + + # By default, look in this directory for a bunch of .whl files which we will + # add to the beginning of sys.path before attempting to import anything. This +@@ -29,13 +29,10 @@ WHEEL_DIR = os.path.abspath(os.path.dirname(__file__)) + def vendored(modulename): + vendored_name = "{0}.{1}".format(__name__, modulename) + +- try: +- __import__(vendored_name, globals(), locals(), level=0) +- except ImportError: +- __import__(modulename, globals(), locals(), level=0) +- sys.modules[vendored_name] = sys.modules[modulename] +- base, head = vendored_name.rsplit(".", 1) +- setattr(sys.modules[base], head, sys.modules[modulename]) ++ __import__(modulename, globals(), locals(), level=0) ++ sys.modules[vendored_name] = sys.modules[modulename] ++ base, head = vendored_name.rsplit(".", 1) ++ setattr(sys.modules[base], head, sys.modules[modulename]) + + + # If we're operating in a debundled setup, then we want to go ahead and trigger diff --git a/dev-python/pip/files/pip-8.0.0-unbundle.patch b/dev-python/pip/files/pip-8.0.0-unbundle.patch new file mode 100644 index 000000000000..d508d51ab4fc --- /dev/null +++ b/dev-python/pip/files/pip-8.0.0-unbundle.patch @@ -0,0 +1,43 @@ + pip/_vendor/__init__.py | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +diff --git a/pip/_vendor/__init__.py b/pip/_vendor/__init__.py +index b09a7c3..b9fe6ee 100644 +--- a/pip/_vendor/__init__.py ++++ b/pip/_vendor/__init__.py +@@ -14,7 +14,7 @@ import sys + # Downstream redistributors which have debundled our dependencies should also + # patch this value to be true. This will trigger the additional patching + # to cause things like "six" to be available as pip. +-DEBUNDLED = False ++DEBUNDLED = True + + # By default, look in this directory for a bunch of .whl files which we will + # add to the beginning of sys.path before attempting to import anything. This +@@ -29,13 +29,10 @@ WHEEL_DIR = os.path.abspath(os.path.dirname(__file__)) + def vendored(modulename): + vendored_name = "{0}.{1}".format(__name__, modulename) + +- try: +- __import__(vendored_name, globals(), locals(), level=0) +- except ImportError: +- __import__(modulename, globals(), locals(), level=0) +- sys.modules[vendored_name] = sys.modules[modulename] +- base, head = vendored_name.rsplit(".", 1) +- setattr(sys.modules[base], head, sys.modules[modulename]) ++ __import__(modulename, globals(), locals(), level=0) ++ sys.modules[vendored_name] = sys.modules[modulename] ++ base, head = vendored_name.rsplit(".", 1) ++ setattr(sys.modules[base], head, sys.modules[modulename]) + + + # If we're operating in a debundled setup, then we want to go ahead and trigger +@@ -85,8 +82,6 @@ if DEBUNDLED: + vendored("requests.packages.urllib3.packages.ordered_dict") + vendored("requests.packages.urllib3.packages.six") + vendored("requests.packages.urllib3.packages.ssl_match_hostname") +- vendored("requests.packages.urllib3.packages.ssl_match_hostname." +- "_implementation") + vendored("requests.packages.urllib3.poolmanager") + vendored("requests.packages.urllib3.request") + vendored("requests.packages.urllib3.response") diff --git a/dev-python/pip/files/pip-9.0.1-disable-version-check.patch b/dev-python/pip/files/pip-9.0.1-disable-version-check.patch new file mode 100644 index 000000000000..7334380c1e1d --- /dev/null +++ b/dev-python/pip/files/pip-9.0.1-disable-version-check.patch @@ -0,0 +1,32 @@ +From 890a1c26018752f2c57c7800968e4b8d1e0987f9 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sun, 20 Nov 2016 19:52:40 +0100 +Subject: [PATCH] Stop checking for new versions + +--- + pip/basecommand.py | 9 --------- + 1 file changed, 9 deletions(-) + +diff --git a/pip/basecommand.py b/pip/basecommand.py +index 54c6706..3cffe86 100644 +--- a/pip/basecommand.py ++++ b/pip/basecommand.py +@@ -241,15 +241,6 @@ class Command(object): + logger.critical('Exception:', exc_info=True) + + return UNKNOWN_ERROR +- finally: +- # Check if we're using the latest version of pip available +- if (not options.disable_pip_version_check and not +- getattr(options, "no_index", False)): +- with self._build_session( +- options, +- retries=0, +- timeout=min(5, options.timeout)) as session: +- pip_version_check(session) + + return SUCCESS + +-- +2.10.2 + diff --git a/dev-python/pip/files/pip-disable-system-install.patch b/dev-python/pip/files/pip-disable-system-install.patch new file mode 100644 index 000000000000..9e572454315e --- /dev/null +++ b/dev-python/pip/files/pip-disable-system-install.patch @@ -0,0 +1,29 @@ +From 847553da616edabede18c69ba640a32b719b45a8 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert <floppym@gentoo.org> +Date: Tue, 27 Oct 2015 12:20:44 -0400 +Subject: [PATCH] install: Raise an error to avoid breaking python-exec + +Running pip without --target, --root, or --user will result in packages +being installed systemwide. This has a tendency to break python-exec if +setuptools gets installed or upgraded. +--- + pip/commands/install.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/pip/commands/install.py b/pip/commands/install.py +index 46cd9f2..36b72f2 100644 +--- a/pip/commands/install.py ++++ b/pip/commands/install.py +@@ -204,6 +204,9 @@ class InstallCommand(RequirementCommand): + ) + options.ignore_installed = True + ++ if not options.use_user_site and not options.target_dir and not options.root_path: ++ raise CommandError("(Gentoo) Please run pip with the --user option to avoid breaking python-exec") ++ + if options.build_dir: + options.build_dir = os.path.abspath(options.build_dir) + +-- +2.6.2 + diff --git a/dev-python/pip/metadata.xml b/dev-python/pip/metadata.xml new file mode 100644 index 000000000000..f43b849bf497 --- /dev/null +++ b/dev-python/pip/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pip</remote-id> + <remote-id type="github">pypa/pip</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pip/pip-7.1.2.ebuild b/dev-python/pip/pip-7.1.2.ebuild new file mode 100644 index 000000000000..99f9e2eb5b78 --- /dev/null +++ b/dev-python/pip/pip-7.1.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Installs python packages -- replacement for easy_install" +HOMEPAGE="https://pip.pypa.io/ https://pypi.python.org/pypi/pip/ https://github.com/pypa/pip/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +SLOT="0" + +# Check pip/_vendor/vendor.txt for this +VENDOR_DEPEND=" + >=dev-python/distlib-0.2.1[${PYTHON_USEDEP}] + >=dev-python/html5lib-0.999999[${PYTHON_USEDEP}] + >=dev-python/six-1.9[${PYTHON_USEDEP}] + >=dev-python/colorama-0.3.3[${PYTHON_USEDEP}] + >=dev-python/requests-2.7.0[${PYTHON_USEDEP}] + >=dev-python/CacheControl-0.11.5[${PYTHON_USEDEP}] + >=dev-python/lockfile-0.10.2[${PYTHON_USEDEP}] + >=dev-python/progress-1.2[${PYTHON_USEDEP}] + >=dev-python/packaging-15.3[${PYTHON_USEDEP}] + >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] + virtual/python-ipaddress[${PYTHON_USEDEP}] +" +RDEPEND="${VENDOR_DEPEND} + >=dev-python/setuptools-18.2[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +# required test data isn't bundled with the tarball +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.2-disable-version-check.patch + "${FILESDIR}"/${P}-unbundle.patch + ) + +python_prepare_all() { + mv pip/_vendor/__init__.py "${T}" || die + rm -r pip/_vendor/* || die + mv "${T}"/__init__.py pip/_vendor/__init__.py || die + + distutils-r1_python_prepare_all +} + +python_install_all() { + local DOCS=( AUTHORS.txt docs/*.rst ) + distutils-r1_python_install_all + + COMPLETION="${T}"/completion.tmp + + "${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die + newbashcomp "${COMPLETION}" ${PN} + + "${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die + insinto /usr/share/zsh/site-functions + newins "${COMPLETION}" _pip +} diff --git a/dev-python/pip/pip-9.0.1-r1.ebuild b/dev-python/pip/pip-9.0.1-r1.ebuild new file mode 100644 index 000000000000..dfc2aa6a48fe --- /dev/null +++ b/dev-python/pip/pip-9.0.1-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE="threads(+)" + +inherit eutils bash-completion-r1 distutils-r1 + +DESCRIPTION="Installs python packages -- replacement for easy_install" +HOMEPAGE="https://pip.pypa.io/ https://pypi.python.org/pypi/pip/ https://github.com/pypa/pip/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="alpha amd64 arm arm64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux" +SLOT="0" + +# Check pip/_vendor/vendor.txt for this +#VENDOR_DEPEND=" +# >=dev-python/distlib-0.2.2[${PYTHON_USEDEP}] +# >=dev-python/html5lib-1.0b8[${PYTHON_USEDEP}] +# >=dev-python/six-1.10.0${PYTHON_USEDEP}] +# >=dev-python/colorama-0.3.6[${PYTHON_USEDEP}] +# >=dev-python/requests-2.9.1-r2[${PYTHON_USEDEP}] +# >=dev-python/CacheControl-0.11.6[${PYTHON_USEDEP}] +# >=dev-python/lockfile-0.12.2[${PYTHON_USEDEP}] +# >=dev-python/progress-1.2[${PYTHON_USEDEP}] +# >=dev-python/packaging-16.5[${PYTHON_USEDEP}] +# >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] +# >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] +# virtual/python-ipaddress[${PYTHON_USEDEP}] +#" +# https://github.com/pypa/pip/issues/3057 +#RDEPEND="${VENDOR_DEPEND} +# >=dev-python/setuptools-19.2[${PYTHON_USEDEP}] +# <dev-python/setuptools-19.4[${PYTHON_USEDEP}] +#" +#DEPEND="${RDEPEND}" + +# required test data isn't bundled with the tarball +RESTRICT="test" + +#PATCHES=( +# "${FILESDIR}"/${PN}-6.0.2-disable-version-check.patch +# "${FILESDIR}"/${PN}-8.0.0-unbundle.patch +# ) + +#python_prepare_all() { +# mv pip/_vendor/__init__.py "${T}" || die +# rm -r pip/_vendor/* || die +# mv "${T}"/__init__.py pip/_vendor/__init__.py || die +# +# distutils-r1_python_prepare_all +#} + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/pip-disable-system-install.patch" + "${FILESDIR}/${PN}-9.0.1-disable-version-check.patch" +) + +python_install_all() { + local DOCS=( AUTHORS.txt docs/*.rst ) + distutils-r1_python_install_all + + COMPLETION="${T}"/completion.tmp + + "${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die + newbashcomp "${COMPLETION}" ${PN} + + "${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die + insinto /usr/share/zsh/site-functions + newins "${COMPLETION}" _pip +} diff --git a/dev-python/pip/pip-9.0.1-r2.ebuild b/dev-python/pip/pip-9.0.1-r2.ebuild new file mode 100644 index 000000000000..fa6353f956a8 --- /dev/null +++ b/dev-python/pip/pip-9.0.1-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE="threads(+)" + +inherit eutils bash-completion-r1 distutils-r1 + +DESCRIPTION="Installs python packages -- replacement for easy_install" +HOMEPAGE="https://pip.pypa.io/ https://pypi.python.org/pypi/pip/ https://github.com/pypa/pip/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +SLOT="0" + +IUSE="-vanilla" + +# Check pip/_vendor/vendor.txt for this +#VENDOR_DEPEND=" +# >=dev-python/distlib-0.2.2[${PYTHON_USEDEP}] +# >=dev-python/html5lib-1.0b8[${PYTHON_USEDEP}] +# >=dev-python/six-1.10.0${PYTHON_USEDEP}] +# >=dev-python/colorama-0.3.6[${PYTHON_USEDEP}] +# >=dev-python/requests-2.9.1-r2[${PYTHON_USEDEP}] +# >=dev-python/CacheControl-0.11.6[${PYTHON_USEDEP}] +# >=dev-python/lockfile-0.12.2[${PYTHON_USEDEP}] +# >=dev-python/progress-1.2[${PYTHON_USEDEP}] +# >=dev-python/packaging-16.5[${PYTHON_USEDEP}] +# >=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] +# >=dev-python/pyparsing-2.1.0[${PYTHON_USEDEP}] +# virtual/python-ipaddress[${PYTHON_USEDEP}] +#" +# https://github.com/pypa/pip/issues/3057 +#RDEPEND="${VENDOR_DEPEND} +# >=dev-python/setuptools-19.2[${PYTHON_USEDEP}] +# <dev-python/setuptools-19.4[${PYTHON_USEDEP}] +#" +#DEPEND="${RDEPEND}" + +# required test data isn't bundled with the tarball +RESTRICT="test" + +#PATCHES=( +# "${FILESDIR}"/${PN}-6.0.2-disable-version-check.patch +# "${FILESDIR}"/${PN}-8.0.0-unbundle.patch +# ) + +#python_prepare_all() { +# mv pip/_vendor/__init__.py "${T}" || die +# rm -r pip/_vendor/* || die +# mv "${T}"/__init__.py pip/_vendor/__init__.py || die +# +# distutils-r1_python_prepare_all +#} + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND}" + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${PN}-9.0.1-disable-version-check.patch" + ) + if ! use vanilla; then + PATCHES+=( "${FILESDIR}/pip-disable-system-install.patch" ) + fi + distutils-r1_python_prepare_all +} + +python_install_all() { + local DOCS=( AUTHORS.txt docs/*.rst ) + distutils-r1_python_install_all + + COMPLETION="${T}"/completion.tmp + + "${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die + newbashcomp "${COMPLETION}" ${PN} + + "${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die + insinto /usr/share/zsh/site-functions + newins "${COMPLETION}" _pip +} |