From dbc2f06b9a9d05632871ca782734250d0421c43f Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 7 Mar 2020 17:04:28 +0000 Subject: [PATCH] Fix constraint resolution on pypy-2.7 --- cibuildwheel/macos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 40db5250..65e87da5 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -148,8 +148,9 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef dependency_constraint_flags = [] if dependency_constraints: + python_version, _, _ = config.version.partition('-') dependency_constraint_flags = [ - '-c', dependency_constraints.get_for_python_version(config.version) + '-c', dependency_constraints.get_for_python_version(python_version) ] # install pip & wheel