From 914f74a0f03077c503eba0784faf4643adbfd52a Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Tue, 5 Jan 2021 16:03:24 +0000 Subject: [PATCH] Interim fix for archs comparison This will change when #507 is merged --- cibuildwheel/macos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 6a06c53c..daac4735 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -239,9 +239,9 @@ def setup_python(python_configuration: PythonConfiguration, def build(options: BuildOptions) -> None: allowed_archs = {Architecture.x86_64, Architecture.universal2, Architecture.arm64} - if set(options.architectures) <= allowed_archs: + if any(a not in allowed_archs for a in options.architectures): raise ValueError(textwrap.dedent(f''' - Invalid archs option {options.architectures}. macOS only supports + Invalid archs option {[a.value for a in options.architectures]}. macOS only supports these architectures: {', '.join(a.value for a in allowed_archs)}. '''))