Commit f420bb20 authored by Jason R. Coombs's avatar Jason R. Coombs

Let the default vc_min_ver represent the most lenient, degenerate limit.

parent 315e8ffa
...@@ -806,15 +806,14 @@ class EnvironmentInfo: ...@@ -806,15 +806,14 @@ class EnvironmentInfo:
# Variables and properties in this class use originals CamelCase variables # Variables and properties in this class use originals CamelCase variables
# names from Microsoft source files for more easy comparaison. # 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.pi = PlatformInfo(arch)
self.ri = RegistryInfo(self.pi) self.ri = RegistryInfo(self.pi)
self.si = SystemInfo(self.ri, vc_ver) self.si = SystemInfo(self.ri, vc_ver)
if vc_min_ver: if self.vc_ver < vc_min_ver:
if self.vc_ver < vc_min_ver: err = 'No suitable Microsoft Visual C++ version found'
err = 'No suitable Microsoft Visual C++ version found' raise distutils.errors.DistutilsPlatformError(err)
raise distutils.errors.DistutilsPlatformError(err)
@property @property
def vc_ver(self): def vc_ver(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment