aboutsummaryrefslogtreecommitdiffstats
path: root/community/certbot/cerbot_py3_looseversion.patch
blob: 5a10fde67f11bdc35cae485aadc8d109fd061f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 '