diff options
author | Mike Sullivan <mksully22@gmail.com> | 2019-11-13 14:23:54 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-11-13 14:31:01 +0000 |
commit | d59b8586b4c139c87d358b71ff20679f27193d52 (patch) | |
tree | 4aa6bab80d02496477190e96b3ea4ad25e006510 /community/certbot/cerbot_py3_looseversion.patch | |
parent | 6eca8b06341615053cfa1ffedead0a1bf210469a (diff) | |
download | aports-d59b8586b4c139c87d358b71ff20679f27193d52.tar.bz2 aports-d59b8586b4c139c87d358b71ff20679f27193d52.tar.xz |
community/certbot: change version checking to Loose when using python3.8
Diffstat (limited to 'community/certbot/cerbot_py3_looseversion.patch')
-rw-r--r-- | community/certbot/cerbot_py3_looseversion.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/certbot/cerbot_py3_looseversion.patch b/community/certbot/cerbot_py3_looseversion.patch new file mode 100644 index 0000000000..5a10fde67f --- /dev/null +++ b/community/certbot/cerbot_py3_looseversion.patch @@ -0,0 +1,20 @@ +--- a/setup.py ++++ b/setup.py +@@ -3,7 +3,7 @@ + import re + import sys + +-from distutils.version import StrictVersion ++from distutils.version import LooseVersion + from setuptools import find_packages, setup, __version__ as setuptools_version + from setuptools.command.test import test as TestCommand + +@@ -60,7 +60,7 @@ + # So this dependency is not added for old Linux distributions with old setuptools, + # in order to allow these systems to build certbot from sources. + pywin32_req = 'pywin32>=225' # do not forget to edit pywin32 dependency accordingly in windows-installer/construct.py +-if StrictVersion(setuptools_version) >= StrictVersion('36.2'): ++if LooseVersion(setuptools_version) >= LooseVersion('36.2'): + install_requires.append(pywin32_req + " ; sys_platform == 'win32'") + elif 'bdist_wheel' in sys.argv[1:]: + raise RuntimeError('Error, you are trying to build certbot wheels using an old version ' |