feat: support Windows workaround on Travis CI

This commit is contained in:
Henry Fredrick Schreiner
2021-01-22 13:01:00 -05:00
committed by Henry Schreiner
parent c90c7666b9
commit eb9850dbde
5 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -70,7 +70,8 @@ def get_python_configurations(
'64': Architecture.AMD64,
}
if IS_RUNNING_ON_TRAVIS:
custom_compiler = os.environ.get('DISTUTILS_USE_SDK') and os.environ.get('MSSdk')
if IS_RUNNING_ON_TRAVIS and not custom_compiler:
# cannot install VCForPython27.msi which is needed for compiling C software
# try with (and similar): msiexec /i VCForPython27.msi ALLUSERS=1 ACCEPT=YES /passive
python_configurations = [c for c in python_configurations if not c.version.startswith('2.7')]