Skip to content

Commit 39b8dd1

Browse files
committed
fix: use log.warning to print warnings in print_preamble
1 parent 8c4cf4e commit 39b8dd1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cibuildwheel/__main__.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,13 @@ def print_preamble(platform: str, options: Options, identifiers: Sequence[str])
380380

381381
print()
382382
print(f"Cache folder: {CIBW_CACHE_PATH}")
383+
print()
383384

384385
warnings = detect_warnings(options=options, identifiers=identifiers)
385-
if warnings:
386-
print("\nWarnings:")
387-
for warning in warnings:
388-
print(" " + warning)
386+
for warning in warnings:
387+
log.warning(warning)
389388

390-
print("\nHere we go!\n")
389+
print("Here we go!\n")
391390

392391

393392
def get_build_identifiers(

0 commit comments

Comments
 (0)