diff options
author | Matthew Ellison | 2016-01-26 12:28:39 -0500 |
---|---|---|
committer | Matthew Ellison | 2016-01-26 12:28:39 -0500 |
commit | 38a1ff639a1bbbdae5d14c0db4e900f2fca9f781 (patch) | |
tree | 02082242036cf5adfb896c8f459576f38009364f | |
parent | 9a0e651e9af12a1c757f1e12c8db8e03aa4c97ac (diff) | |
download | aur-38a1ff639a1bbbdae5d14c0db4e900f2fca9f781.tar.gz |
Setuptools Requirements Patch
Removed requirements when built/installed on Python 3.4 or greater so
distutils will not complain about argparse. Since Python 3.4, all
requirements are included in the standard library.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | optional-reqs.patch | 12 |
3 files changed, 19 insertions, 3 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Jan 26 16:07:17 UTC 2016 +# Tue Jan 26 17:27:45 UTC 2016 pkgbase = python-nsenter pkgdesc = Small context manager for entering Linux kernel namespaces. pkgver = 0.2 - pkgrel = 2 + pkgrel = 3 url = https://pypi.python.org/pypi/nsenter arch = any license = Apache @@ -11,8 +11,10 @@ pkgbase = python-nsenter depends = python source = https://pypi.python.org/packages/source/n/nsenter/nsenter-0.2.tar.gz source = entrypoint-name.patch + source = optional-reqs.patch sha256sums = 876a18cb03de85948e4cd72fd4cfda4879561b7264f5722603f6437d452a25cb sha256sums = 7c2b8e23da50f937a1e3515f085eb5dc0fbb4ece188b0a2e140b4bc5a2ff62bc + sha256sums = e4043c6c971691c6c9d240abe86a9e10306ce4b6cdf9f5cbd053deb000b1e343 pkgname = python-nsenter @@ -3,7 +3,7 @@ _pkgname='nsenter' pkgname="python-${_pkgname}" pkgver=0.2 -pkgrel=2 +pkgrel=3 pkgdesc='Small context manager for entering Linux kernel namespaces.' arch=('any') url='https://pypi.python.org/pypi/nsenter' @@ -13,10 +13,12 @@ makedepends=('python-setuptools') source=( "https://pypi.python.org/packages/source/n/nsenter/nsenter-${pkgver}.tar.gz" "entrypoint-name.patch" + "optional-reqs.patch" ) sha256sums=( '876a18cb03de85948e4cd72fd4cfda4879561b7264f5722603f6437d452a25cb' '7c2b8e23da50f937a1e3515f085eb5dc0fbb4ece188b0a2e140b4bc5a2ff62bc' + 'e4043c6c971691c6c9d240abe86a9e10306ce4b6cdf9f5cbd053deb000b1e343' ) prepare() { diff --git a/optional-reqs.patch b/optional-reqs.patch new file mode 100644 index 000000000000..04999b37f62c --- /dev/null +++ b/optional-reqs.patch @@ -0,0 +1,12 @@ +--- ./setup.py.old 2016-01-26 12:18:09.169870846 -0500 ++++ ./setup.py 2016-01-26 12:21:13.526724075 -0500 +@@ -12,6 +12,9 @@ + + + def get_install_requirements(path): ++ import sys ++ if sys.version_info[0] >= 3 and sys.version_info[1] >= 4: ++ return [] + content = open(os.path.join(__location__, path)).read() + return [req for req in content.split('\\n') if req != ''] + |