diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2017-04-08 10:18:31 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2017-04-08 10:18:31 -0400 |
commit | f420bb2093f85d3aa34e732c42133b0e2e06ecd9 (patch) | |
tree | a8bf6edf694bebce46c4c9672e32df657b50bbf6 /setuptools/msvc.py | |
parent | 315e8ffaa3886e7988ff29238e5240bc33317eea (diff) | |
download | python-setuptools-git-f420bb2093f85d3aa34e732c42133b0e2e06ecd9.tar.gz |
Let the default vc_min_ver represent the most lenient, degenerate limit.
Diffstat (limited to 'setuptools/msvc.py')
-rw-r--r-- | setuptools/msvc.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/setuptools/msvc.py b/setuptools/msvc.py index 35c02129..75745e67 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -806,15 +806,14 @@ class EnvironmentInfo: # Variables and properties in this class use originals CamelCase variables # names from Microsoft source files for more easy comparaison. - def __init__(self, arch, vc_ver=None, vc_min_ver=None): + def __init__(self, arch, vc_ver=None, vc_min_ver=0): self.pi = PlatformInfo(arch) self.ri = RegistryInfo(self.pi) self.si = SystemInfo(self.ri, vc_ver) - if vc_min_ver: - if self.vc_ver < vc_min_ver: - err = 'No suitable Microsoft Visual C++ version found' - raise distutils.errors.DistutilsPlatformError(err) + if self.vc_ver < vc_min_ver: + err = 'No suitable Microsoft Visual C++ version found' + raise distutils.errors.DistutilsPlatformError(err) @property def vc_ver(self): |