summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Ellison2016-01-26 12:28:39 -0500
committerMatthew Ellison2016-01-26 12:28:39 -0500
commit38a1ff639a1bbbdae5d14c0db4e900f2fca9f781 (patch)
tree02082242036cf5adfb896c8f459576f38009364f
parent9a0e651e9af12a1c757f1e12c8db8e03aa4c97ac (diff)
downloadaur-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--.SRCINFO6
-rw-r--r--PKGBUILD4
-rw-r--r--optional-reqs.patch12
3 files changed, 19 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9b243eaf7af..71e1796c3e4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 11db18024fb..29aaaf72e48 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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 00000000000..04999b37f62
--- /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 != '']
+