summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pip
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-02-23 21:43:16 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-02-23 21:43:16 (GMT)
commit119a4d3f9fe0984a11ffeabbbe6503cdd373cc5b (patch)
treeb863c0c92f8ae38c4c061d472dac7476b80ff40e /abs/core/python_modules/python-pip
parenta9a99348fcef6230ad628bf80083ea007ce6d6b0 (diff)
downloadlinhes_pkgbuild-119a4d3f9fe0984a11ffeabbbe6503cdd373cc5b.zip
linhes_pkgbuild-119a4d3f9fe0984a11ffeabbbe6503cdd373cc5b.tar.gz
linhes_pkgbuild-119a4d3f9fe0984a11ffeabbbe6503cdd373cc5b.tar.bz2
python-pip: update to 9.0.1
Diffstat (limited to 'abs/core/python_modules/python-pip')
-rw-r--r--abs/core/python_modules/python-pip/PKGBUILD17
-rw-r--r--abs/core/python_modules/python-pip/__changelog2
2 files changed, 12 insertions, 7 deletions
diff --git a/abs/core/python_modules/python-pip/PKGBUILD b/abs/core/python_modules/python-pip/PKGBUILD
index acef38b..3531f1e 100644
--- a/abs/core/python_modules/python-pip/PKGBUILD
+++ b/abs/core/python_modules/python-pip/PKGBUILD
@@ -2,14 +2,14 @@
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Sebastien Binet <binet@lblbox>
-pkgname=('python2-pip')
+pkgname=('python-pip' 'python2-pip')
pkgver=9.0.1
-pkgrel=2
+pkgrel=3
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=('any')
license=('MIT')
-makedepends=('python2' 'python2-setuptools')
+makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
source=(https://pypi.io/packages/source/p/pip/pip-${pkgver}.tar.gz)
md5sums=('35f01da33009719497f01a4ba69d63c9')
sha256sums=('09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d')
@@ -23,6 +23,9 @@ package_python-pip() {
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir"/usr/share/bash-completion/completions
+ PYTHONPATH="$pkgdir"/usr/lib/python3.6/site-packages "$pkgdir"/usr/bin/pip completion --bash > "$pkgdir"/usr/share/bash-completion/completions/pip
}
package_python2-pip() {
@@ -33,12 +36,16 @@ package_python2-pip() {
cd "$srcdir/pip-$pkgver"
python2 setup.py build
python2 setup.py install --prefix=/usr --root="$pkgdir"
-
+
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
-
+
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ install -dm755 "$pkgdir"/usr/share/bash-completion/completions
+ PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash > "$pkgdir"/usr/share/bash-completion/completions/pip2
+ sed -i 's/pip/pip2/g' "$pkgdir"/usr/share/bash-completion/completions/pip2
}
diff --git a/abs/core/python_modules/python-pip/__changelog b/abs/core/python_modules/python-pip/__changelog
deleted file mode 100644
index 4f818ef..0000000
--- a/abs/core/python_modules/python-pip/__changelog
+++ /dev/null
@@ -1,2 +0,0 @@
-PKGBUILD: don't build py 3 stuff
-