summaryrefslogtreecommitdiff
path: root/python-pip/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'python-pip/Pkgfile')
-rw-r--r--python-pip/Pkgfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/python-pip/Pkgfile b/python-pip/Pkgfile
new file mode 100644
index 000000000..7ed6d2403
--- /dev/null
+++ b/python-pip/Pkgfile
@@ -0,0 +1,33 @@
+# Description: A tool for installing and managing Python packages.
+# URL: https://pypi.python.org/pypi/pip/
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Depends on: python
+
+name=python-pip
+version=9.0.1
+release=2
+source=(https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-$version.tar.gz
+ https://bootstrap.pypa.io/get-pip.py)
+
+build() {
+ cd ${name#*-}-$version
+
+ if [ "$(pkginfo -i | egrep -c '^python-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
+ install -d build
+ /usr/bin/python $SRC/get-pip.py --root=$SRC/build
+
+ local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
+
+ PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
+ /usr/bin/python setup.py build
+
+ PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
+ /usr/bin/python setup.py install \
+ --prefix=/usr --root=$PKG --optimize=1
+ else
+ /usr/bin/python setup.py build
+
+ /usr/bin/python setup.py install \
+ --prefix=/usr --root=$PKG --optimize=1
+ fi
+}

Generated by cgit