summaryrefslogtreecommitdiff
path: root/pip/Pkgfile
blob: ed4c8e19899a7b4f9d89f7fe055384c38799088d (plain)
    1 # Description: A tool for installing and managing Python packages.
    2 # URL: https://pypi.python.org/pypi/pip/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: python
    5 
    6 name=pip
    7 version=9.0.1
    8 release=2
    9 source=(https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-$version.tar.gz
   10 	https://bootstrap.pypa.io/get-pip.py)
   11 
   12 build() {
   13 	cd $name-$version
   14 
   15 	if [ "$(pkginfo -i | egrep -c '^(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
   16 		install -d build
   17 		/usr/bin/python $SRC/get-pip.py --root=$SRC/build
   18 
   19 		local PYTHONVERSION=$(/usr/bin/python -c 'import sys; print("%s.%s" % sys.version_info[:2])')
   20 
   21 		PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
   22 			/usr/bin/python setup.py build
   23 
   24 		PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
   25 			/usr/bin/python setup.py install \
   26 			--prefix=/usr --root=$PKG --optimize=1
   27 	else
   28 		/usr/bin/python setup.py build
   29 
   30 		/usr/bin/python setup.py install \
   31 			--prefix=/usr --root=$PKG --optimize=1
   32 	fi
   33 }

Generated by cgit