Skip to content

Commit 2e52bf2

Browse files
committed
fix: use strtobool to parse CIBW_PYPA_BUILD
1 parent 592a270 commit 2e52bf2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cibuildwheel/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
Unbuffered,
2727
detect_ci_provider,
2828
resources_dir,
29+
strtobool,
2930
)
3031

3132

@@ -186,7 +187,7 @@ def main() -> None:
186187
build_config = os.environ.get("CIBW_BUILD") or "*"
187188
skip_config = os.environ.get("CIBW_SKIP", "")
188189
test_skip = os.environ.get("CIBW_TEST_SKIP", "")
189-
pypa_build = os.environ.get("CIBW_PYPA_BUILD", "0")
190+
pypa_build = strtobool(os.environ.get("CIBW_PYPA_BUILD", "0"))
190191

191192
environment_config = get_option_from_environment(
192193
"CIBW_ENVIRONMENT", platform=platform, default=""
@@ -329,7 +330,7 @@ def main() -> None:
329330
environment=environment,
330331
dependency_constraints=dependency_constraints,
331332
manylinux_images=manylinux_images,
332-
pypa_build=bool(pypa_build),
333+
pypa_build=pypa_build,
333334
)
334335

335336
# Python is buffering by default when running on the CI platforms, giving problems interleaving subprocess call output with unflushed calls to 'print'

0 commit comments

Comments
 (0)