Skip to content

Commit

Permalink
fix: use log.warning to print warnings in print_preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 21, 2024
1 parent 8c4cf4e commit 39b8dd1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ def print_preamble(platform: str, options: Options, identifiers: Sequence[str])

print()
print(f"Cache folder: {CIBW_CACHE_PATH}")
print()

warnings = detect_warnings(options=options, identifiers=identifiers)
if warnings:
print("\nWarnings:")
for warning in warnings:
print(" " + warning)
for warning in warnings:
log.warning(warning)

print("\nHere we go!\n")
print("Here we go!\n")


def get_build_identifiers(
Expand Down

0 comments on commit 39b8dd1

Please sign in to comment.