Skip to content

Commit

Permalink
Preserve wheels on error (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jun 18, 2022
1 parent 6a7e3c4 commit 97a0d0c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions builder/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def builder(
exit_code = 109
except TimeoutExpired:
exit_code = 80
copy_wheels_from_cache(Path("/root/.cache/pip/wheels"), wheels_dir)
else:
# Build all needed wheels at once
packages = extract_packages(requirement, requirement_diff)
Expand All @@ -179,7 +178,11 @@ def builder(
exit_code = 109
except TimeoutExpired:
exit_code = 80
copy_wheels_from_cache(Path("/root/.cache/pip/wheels"), wheels_dir)

# pip copy wheels only on success over to our folder
# let's preserve on a error all success builds before
if exit_code != 0:
copy_wheels_from_cache(Path("/root/.cache/pip/wheels"), wheels_dir)

if not run_auditwheel(wheels_dir):
exit_code = 109
Expand Down

0 comments on commit 97a0d0c

Please sign in to comment.