aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-snmp/remove-bogus-check.patch
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-07 22:25:39 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-07 22:28:05 -0300
commit2fc3466e31d54b2f3ccf5a5afa392b05137a58e4 (patch)
tree4750210c9a75868d98479112c211d8ca1a633545 /community/py3-snmp/remove-bogus-check.patch
parent05f37f5b110d7ba67051a0601a1891ad2b9765ac (diff)
downloadaports-2fc3466e31d54b2f3ccf5a5afa392b05137a58e4.tar.bz2
aports-2fc3466e31d54b2f3ccf5a5afa392b05137a58e4.tar.xz
community/py3-snmp: rename from py-snmp
Diffstat (limited to 'community/py3-snmp/remove-bogus-check.patch')
-rw-r--r--community/py3-snmp/remove-bogus-check.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/py3-snmp/remove-bogus-check.patch b/community/py3-snmp/remove-bogus-check.patch
new file mode 100644
index 0000000000..4ce19a0c2f
--- /dev/null
+++ b/community/py3-snmp/remove-bogus-check.patch
@@ -0,0 +1,25 @@
+diff --git a/setup.py b/setup.py
+index 0d987d5..82da3ad 100644
+--- a/setup.py
++++ b/setup.py
+@@ -63,19 +63,6 @@ try:
+
+ setup, Command = setuptools.setup, setuptools.Command
+
+- observed_version = [int(x) for x in setuptools.__version__.split('.')]
+- required_version = [36, 2, 0]
+-
+- # NOTE(etingof): require fresh setuptools to build proper wheels
+- # See also: https://hynek.me/articles/conditional-python-dependencies/
+- if ('bdist_wheel' in sys.argv and
+- observed_version < required_version):
+- print("ERROR: your wheels won't come out round with setuptools %s! "
+- "Upgrade to %s and try again." % (
+- '.'.join([str(x) for x in observed_version]),
+- '.'.join([str(x) for x in required_version])))
+- sys.exit(1)
+-
+ params = {
+ 'install_requires': requires,
+ 'zip_safe': True
+