Improve the formatting of the preamble

This commit is contained in:
Joe Rickerby
2022-11-26 17:16:54 +00:00
parent 9c6416d4ac
commit 8d05681491
9 changed files with 223 additions and 98 deletions
+3 -2
View File
@@ -229,7 +229,7 @@ def build_in_directory(args: CommandLineArguments) -> None:
)
sys.exit(2)
options = compute_options(platform=platform, command_line_arguments=args)
options = compute_options(platform=platform, command_line_arguments=args, environ=os.environ)
package_dir = options.globals.package_dir
package_files = {"setup.py", "setup.cfg", "pyproject.toml"}
@@ -318,9 +318,10 @@ def print_preamble(platform: str, options: Options, identifiers: list[str]) -> N
print(f"cibuildwheel version {cibuildwheel.__version__}\n")
print("Build options:")
print(f" platform: {platform!r}")
print(f" platform: {platform}")
print(textwrap.indent(options.summary(identifiers), " "))
print()
print(f"Cache folder: {CIBW_CACHE_PATH}")
warnings = detect_warnings(options=options, identifiers=identifiers)