2017-02-04 17:49:31 +11:00
|
|
|
# Description: A Python module for determining appropriate platform-specific dirs.
|
|
|
|
# URL: https://pypi.python.org/pypi/packaging/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: python3
|
|
|
|
|
|
|
|
name=python3-appdirs
|
|
|
|
version=1.4.0
|
|
|
|
release=1
|
2017-02-12 12:16:35 +11:00
|
|
|
source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz
|
2017-02-04 17:49:31 +11:00
|
|
|
https://bootstrap.pypa.io/get-pip.py)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${name#*-}-$version
|
|
|
|
|
|
|
|
if [ "$(pkginfo -i | egrep -c '^python3-(setuptools|appdirs|pyparsing|six|pip|packaging) ')" != 6 ]; then
|
|
|
|
install -d build
|
|
|
|
/usr/bin/python3 $SRC/get-pip.py --root=$SRC/build
|
|
|
|
|
|
|
|
local PYTHONVERSION=$(python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
|
|
|
|
|
|
|
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
|
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
|
|
|
|
PYTHONPATH=$SRC/build/usr/lib/python$PYTHONVERSION/site-packages \
|
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
|
|
|
else
|
|
|
|
|
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
|
|
|
|
/usr/bin/python3 setup.py install \
|
|
|
|
--prefix=/usr --root=$PKG --optimize=1
|
|
|
|
fi
|
|
|
|
}
|