fix: move and simplify arch check

This commit is contained in:
Henry Schreiner
2021-01-22 13:01:00 -05:00
parent cc0e7ec0a1
commit f5b84797e5
5 changed files with 15 additions and 14 deletions
+7
View File
@@ -20,6 +20,7 @@ from cibuildwheel.util import (
DependencyConstraints,
TestSelector,
Unbuffered,
allowed_architectures_check,
detect_ci_provider,
resources_dir,
)
@@ -257,6 +258,12 @@ def main() -> None:
print_preamble(platform, build_options)
try:
allowed_architectures_check(platform, build_options)
except ValueError as err:
print("cibuildwheel:", *err.args, file=sys.stderr)
sys.exit(4)
if not identifiers:
print(f'cibuildwheel: No build identifiers selected: {build_selector}', file=sys.stderr)
if not args.allow_empty: