Skip to content

Commit

Permalink
chore: force clear build dir in wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Nov 17, 2022
1 parent 1be41e8 commit 4b1aec7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions checker/testers/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ def _gen_build( # type: ignore[override]
)
if normalize_output:
print_info(output or '', end='')

if (build_dir / 'build').exists():
output = self._executor(
['rm', '-rf', str(build_dir / 'build')],
verbose=verbose,
env_sandbox=sandbox,
capture_output=normalize_output,
)
if normalize_output:
print_info(output or '', end='')
else:
output = self._executor(
['pip3', 'install', '-e', str(build_dir), '--force'],
Expand Down

0 comments on commit 4b1aec7

Please sign in to comment.