feat: add CIBW_ALLOW_EMPTY environment variable (#1937)

Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com>
This commit is contained in:
Conor MacBride
2024-07-23 09:25:09 +01:00
committed by GitHub
co-authored by Matthieu Darbois
parent 5af5df4e4f
commit d4c332104d
4 changed files with 39 additions and 5 deletions
+1 -1
View File
@@ -334,7 +334,7 @@ def build_in_directory(args: CommandLineArguments) -> None:
if not identifiers:
message = f"No build identifiers selected: {options.globals.build_selector}"
if args.allow_empty:
if options.globals.allow_empty:
print(f"cibuildwheel: {message}", file=sys.stderr)
else:
raise errors.NothingToDoError(message)