fix: drop Python 2.7 on Windows using 2008 compiler

This commit is contained in:
Henry Schreiner
2021-04-25 00:55:16 -04:00
committed by Henry Schreiner
parent f27943608b
commit 22d473acc0
12 changed files with 21 additions and 57 deletions
+2 -4
View File
@@ -25,7 +25,6 @@ from .util import (
)
IS_RUNNING_ON_AZURE = Path('C:\\hostedtoolcache').exists()
IS_RUNNING_ON_TRAVIS = os.environ.get('TRAVIS_OS_NAME') == 'windows'
def call(args: Sequence[PathOrStr], env: Optional[Dict[str, str]] = None,
@@ -69,10 +68,9 @@ def get_python_configurations(
'64': Architecture.AMD64,
}
# Only supported with custom compiler, since MS removed the 2008 compiler download
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
if not custom_compiler:
python_configurations = [c for c in python_configurations if not c.version.startswith('2.7')]
# skip builds as required