aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-snmp/remove-bogus-check.patch
diff options
context:
space:
mode:
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
+