@@ -1,58 +0,0 @@
1−From 0de195de31dc311976af52a7c2b547bc23af2691 Mon Sep 17 00:00:00 2001
2−From: Frederik Rietdijk <fridh@fridh.nl>
3−Date: Sat, 14 Dec 2019 19:27:14 +0100
4−Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
5− versions
6−
7−```
8− File "setup.py", line 63, in <module>
9− if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
10−File
11−"/nix/store/zdh16dcvjw99ybam59zd2ijb6bx138j0-python3-3.7.5/lib/python3.7/distutils/version.py",
12−line 40, in __init__
13− self.parse(vstring)
14−File
15−"/nix/store/zdh16dcvjw99ybam59zd2ijb6bx138j0-python3-3.7.5/lib/python3.7/distutils/version.py",
16−line 137, in parse
17− raise ValueError("invalid version number '%s'" % vstring)
18−ValueError: invalid version number '41.4.0.post20191022'
19−```
20−---
21− certbot/setup.py | 15 +--------------
22− 1 file changed, 1 insertion(+), 14 deletions(-)
23−
24−diff --git a/certbot/setup.py b/certbot/setup.py
25−index d19327e5e..ac1524793 100644
26−--- a/certbot/setup.py
27−+++ b/certbot/setup.py
28−@@ -1,5 +1,4 @@
29− import codecs
30−-from distutils.version import StrictVersion
31− import os
32− import re
33− import sys
34−@@ -58,20 +57,8 @@ install_requires = [
35−
36− # Add pywin32 on Windows platforms to handle low-level system calls.
37− # This dependency needs to be added using environment markers to avoid its installation on Linux.
38−-# However environment markers are supported only with setuptools >= 36.2.
39−-# So this dependency is not added for old Linux distributions with old setuptools,
40−-# in order to allow these systems to build certbot from sources.
41− pywin32_req = 'pywin32>=227' # do not forget to edit pywin32 dependency accordingly in windows-installer/construct.py
42−-if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
43−- install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
44−-elif 'bdist_wheel' in sys.argv[1:]:
45−- raise RuntimeError('Error, you are trying to build certbot wheels using an old version '
46−- 'of setuptools. Version 36.2+ of setuptools is required.')
47−-elif os.name == 'nt':
48−- # This branch exists to improve this package's behavior on Windows. Without
49−- # it, if the sdist is installed on Windows with an old version of
50−- # setuptools, pywin32 will not be specified as a dependency.
51−- install_requires.append(pywin32_req)
52−+install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
53−
54− dev_extras = [
55− 'coverage',
56−--
57−2.24.1
58−