2017-02-04 11:38:30 +11:00
|
|
|
# Description: A tool for installing and managing Python packages.
|
|
|
|
# URL: https://www.pip-installer.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: python
|
2017-02-04 01:20:44 +11:00
|
|
|
|
|
|
|
name=pip
|
|
|
|
version=9.0.1
|
2017-02-04 01:21:50 +11:00
|
|
|
release=2
|
2017-02-04 11:38:30 +11:00
|
|
|
source=(https://pypi.io/packages/source/p/pip/pip-$version.tar.gz
|
2017-02-04 01:21:50 +11:00
|
|
|
https://bootstrap.pypa.io/get-pip.py)
|
2017-02-04 01:20:44 +11:00
|
|
|
|
|
|
|
build() {
|
2017-02-04 01:21:50 +11:00
|
|
|
cd $name-$version
|
|
|
|
|
2017-02-04 11:38:30 +11:00
|
|
|
if [ "$(pkginfo -i | egrep -c '^(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
|
2017-02-04 01:21:50 +11:00
|
|
|
install -d build
|
|
|
|
/usr/bin/python $SRC/get-pip.py --root=$SRC/build
|
|
|
|
|
|
|
|
PYTHONPATH=$SRC/build/usr/lib/python2.7/site-packages \
|
|
|
|
/usr/bin/python setup.py build
|
|
|
|
|
|
|
|
PYTHONPATH=$SRC/build/usr/lib/python2.7/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
|
2017-02-04 01:20:44 +11:00
|
|
|
}
|