Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cibuildwheel/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,9 @@ def globals(self) -> GlobalOptions:
)
requires_python = None if requires_python_str is None else SpecifierSet(requires_python_str)

archs_config_str = args.archs or self.reader.get("archs", option_format=ListFormat(sep=" "))
archs_config_str = args.archs or self.reader.get(
"archs", option_format=ListFormat(sep=" "), ignore_empty=True
)
architectures = Architecture.parse_config(archs_config_str, platform=self.platform)

# Process `--only`
Expand Down
9 changes: 9 additions & 0 deletions unit_test/main_tests/main_platform_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,12 @@ def test_pyodide_on_windows(monkeypatch, capsys):

assert exit.value.code == 2
assert "Building for pyodide is not supported on Windows" in err


def test_empty_archs_platform(platform, intercepted_build_args, monkeypatch):
monkeypatch.setenv("CIBW_ARCHS", "")

main()

options = intercepted_build_args.args[0]
assert options.globals.architectures == Architecture.auto_archs(platform)
Loading