diff options
author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-03-07 18:07:42 +0000 |
---|---|---|
committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2022-03-07 18:13:20 +0000 |
commit | 5b77a71c74be894608c00f6387ea11d4ae607886 (patch) | |
tree | 0d6d900cb6cd4aa39df30cdef6f2af3a8bc2a814 | |
parent | ee36702e183920b2f80ba0221df2c360bf55825d (diff) | |
download | ports-5b77a71c74be894608c00f6387ea11d4ae607886.tar.gz ports-5b77a71c74be894608c00f6387ea11d4ae607886.zip |
security/py-fail2ban: Fix build with setuptools 58.0.0+
With hat: python
-rw-r--r-- | security/py-fail2ban/files/patch-setup.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/security/py-fail2ban/files/patch-setup.py b/security/py-fail2ban/files/patch-setup.py new file mode 100644 index 000000000000..cc09c1acae19 --- /dev/null +++ b/security/py-fail2ban/files/patch-setup.py @@ -0,0 +1,26 @@ +--- setup.py.orig 2020-11-23 20:43:03 UTC ++++ setup.py +@@ -39,14 +39,7 @@ from distutils.command.build_scripts import build_scri + if setuptools is None: + from distutils.command.install import install + from distutils.command.install_scripts import install_scripts +-try: +- # python 3.x +- from distutils.command.build_py import build_py_2to3 +- from distutils.command.build_scripts import build_scripts_2to3 +- _2to3 = True +-except ImportError: +- # python 2.x +- _2to3 = False ++_2to3 = False + + import os + from os.path import isfile, join, isdir, realpath +@@ -186,7 +179,6 @@ commands.''' + if setuptools: + setup_extra = { + 'test_suite': "fail2ban.tests.utils.gatherTests", +- 'use_2to3': True, + } + else: + setup_extra = {} |