diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 17:53:09 +1100 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-02-04 17:53:09 +1100 |
commit | 11bc8df91bb6fdd32c264aa5c942553914eb9940 (patch) | |
tree | 32b59aaf828de7c22f196c7d441a040c01b4e7f3 | |
parent | 911088d31230009d2a903cc707a785bc28be3780 (diff) | |
download | opt-11bc8df91bb6fdd32c264aa5c942553914eb9940.tar.gz opt-11bc8df91bb6fdd32c264aa5c942553914eb9940.tar.xz |
python3-packaging: initial import
-rw-r--r-- | python3-packaging/.footprint | 39 | ||||
-rw-r--r-- | python3-packaging/.md5sum | 2 | ||||
-rw-r--r-- | python3-packaging/Pkgfile | 34 |
3 files changed, 75 insertions, 0 deletions
diff --git a/python3-packaging/.footprint b/python3-packaging/.footprint new file mode 100644 index 000000000..b9c1bae1c --- /dev/null +++ b/python3-packaging/.footprint @@ -0,0 +1,39 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/python3.6/ +drwxr-xr-x root/root usr/lib/python3.6/site-packages/ +drwxr-xr-x root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/ +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/PKG-INFO +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/SOURCES.txt +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/dependency_links.txt +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/requires.txt +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging-16.8-py3.6.egg-info/top_level.txt +drwxr-xr-x root/root usr/lib/python3.6/site-packages/packaging/ +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__about__.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__init__.py +drwxr-xr-x root/root usr/lib/python3.6/site-packages/packaging/__pycache__/ +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/__about__.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/__about__.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/__init__.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/__init__.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/_compat.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/_compat.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/_structures.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/_structures.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/markers.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/markers.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/requirements.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/requirements.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/specifiers.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/specifiers.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/utils.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/utils.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/version.cpython-36.opt-1.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/__pycache__/version.cpython-36.pyc +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/_compat.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/_structures.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/markers.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/requirements.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/specifiers.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/utils.py +-rw-r--r-- root/root usr/lib/python3.6/site-packages/packaging/version.py diff --git a/python3-packaging/.md5sum b/python3-packaging/.md5sum new file mode 100644 index 000000000..3e4c85436 --- /dev/null +++ b/python3-packaging/.md5sum @@ -0,0 +1,2 @@ +3b74f5cd0740a05802a23b019ce579a3 get-pip.py +53895cdca04ecff80b54128e475b5d3b packaging-16.8.tar.gz diff --git a/python3-packaging/Pkgfile b/python3-packaging/Pkgfile new file mode 100644 index 000000000..f2ed8e0a4 --- /dev/null +++ b/python3-packaging/Pkgfile @@ -0,0 +1,34 @@ +# Description: Core utilities for Python packages. +# URL: https://pypi.python.org/pypi/packaging/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: python3-pyparsing python3-six + +name=python3-packaging +version=16.8 +release=1 +source=(https://pypi.python.org/packages/c6/70/bb32913de251017e266c5114d0a645f262fb10ebc9bf6de894966d124e35/packaging-$version.tar.gz + 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=$(/usr/bin/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 +} |