From a8f6684bfd6b9ea383f2af2048729d1021677438 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 11 Mar 2019 19:59:31 +0000 Subject: [PATCH] Skip Python 3.4 builds on Azure --- cibuildwheel/windows.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index c564fe6e..8332a3f8 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -27,6 +27,7 @@ def get_python_path(config): except IndexError: raise Exception('Could not find a Python install at ' + path_pattern) else: + # Assume we're running on Appveyor major, minor = config.version.split('.')[:2] return 'C:\\Python{major}{minor}{arch}'.format( major=major, @@ -67,6 +68,11 @@ def build(project_dir, output_dir, test_command, test_requires, before_build, bu PythonConfiguration(version='3.7.x', arch="64", identifier='cp37-win_amd64'), ] + if IS_RUNNING_ON_AZURE: + # Python 3.4 isn't supported on Azure. + # See https://github.com/Microsoft/azure-pipelines-tasks/issues/9674 + python_configurations = [c for c in python_configurations if c.version != '3.4.x'] + abs_project_dir = os.path.abspath(project_dir) temp_dir = tempfile.mkdtemp(prefix='cibuildwheel') built_wheel_dir = os.path.join(temp_dir, 'built_wheel')