Add platform-specific CIBW_ARCHS options.

Remove 'auto' as a possible Architecture enum value. This is resolved
at option parse time.
This commit is contained in:
Joe Rickerby
2020-12-20 19:42:28 +00:00
parent 26b7b72d5e
commit 0c9af0357b
3 changed files with 29 additions and 12 deletions
-9
View File
@@ -1,4 +1,3 @@
import platform
import re
import subprocess
import sys
@@ -75,14 +74,6 @@ def get_python_configurations(
# skip builds as required
target_archs = architectures
if Architecture.auto in architectures:
target_archs.remove(Architecture.auto)
native_architecture = Architecture(platform.machine())
target_archs.append(native_architecture)
# x86_64 machines can run i686 docker containers
if native_architecture == Architecture.x86_64:
target_archs.append(Architecture.i686)
return [
c for c in python_configurations
if matches_platform(c.identifier, target_archs)