Skip to content

Commit

Permalink
Merge pull request #53 from dhellmann/save-log-from-pip-wheel-command
Browse files Browse the repository at this point in the history
feature: log the output of the build command
  • Loading branch information
mergify[bot] authored Jun 4, 2024
2 parents b1f7970 + 08f74d7 commit 9ac8e68
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e/test_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ sdists-repo/downloads/pbr-6.0.0.tar.gz
work-dir/build-order.json
work-dir/constraints.txt
work-dir/flit_core-3.9.0/build.log
work-dir/pbr-6.0.0/build.log
work-dir/setuptools-70.0.0/build.log
work-dir/stevedore-5.2.0/build.log
work-dir/wheel-0.43.0/build.log
"

pass=true
Expand Down
6 changes: 6 additions & 0 deletions e2e/test_build_with_build_order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ sdists-repo/downloads/setuptools-70.0.0.tar.gz
sdists-repo/downloads/wheel-0.43.0.tar.gz
sdists-repo/downloads/flit_core-3.9.0.tar.gz
sdists-repo/downloads/pbr-6.0.0.tar.gz
work-dir/flit_core-3.9.0/build.log
work-dir/pbr-6.0.0/build.log
work-dir/setuptools-70.0.0/build.log
work-dir/stevedore-5.2.0/build.log
work-dir/wheel-0.43.0/build.log
"

pass=true
Expand Down
1 change: 1 addition & 0 deletions src/fromager/wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def default_build_wheel(ctx, build_env, extra_environ, req, sdist_root_dir):
'--wheel-dir', ctx.wheels_build,
'--no-deps',
'--index-url', ctx.wheel_server_url, # probably redundant, but just in case
'--log', sdist_root_dir.parent / 'build.log',
sdist_root_dir,
]
external_commands.run(cmd, cwd=dir_name, extra_environ=extra_environ)
Expand Down

0 comments on commit 9ac8e68

Please sign in to comment.