From 17566cdee7dc504a8febd255bb187e0ca44d8f26 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 27 Apr 2019 12:12:02 +0100 Subject: [PATCH] Don't expect Python 3.4 wheels on Azure --- test/shared/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/shared/utils.py b/test/shared/utils.py index b6a720f5..0284dd4a 100644 --- a/test/shared/utils.py +++ b/test/shared/utils.py @@ -6,6 +6,8 @@ This file is added to the PYTHONPATH in the test runner at bin/run_test.py. import subprocess, sys, os +IS_RUNNING_ON_AZURE = os.path.exists('C:\\hostedtoolcache') + def cibuildwheel_get_build_identifiers(project_path, env=None): ''' @@ -83,6 +85,10 @@ def expected_wheels(package_name, package_version): else: raise Exception('unsupported platform') + if IS_RUNNING_ON_AZURE: + # Python 3.4 isn't supported on Azure. + templates = [t for t in templates if '-cp34-' not in t] + return [filename.format(package_name=package_name, package_version=package_version) for filename in templates]