diff --git a/builder/__main__.py b/builder/__main__.py index 522ba67e..f612f9df 100644 --- a/builder/__main__.py +++ b/builder/__main__.py @@ -2,6 +2,7 @@ from pathlib import Path from tempfile import TemporaryDirectory from subprocess import CalledProcessError +import sys import click import click_pathlib @@ -29,6 +30,7 @@ def builder(apk, index, requirement, upload, remote): install_apks(apk) check_url(index) + exit_code = 0 with TemporaryDirectory() as temp_dir: output = Path(temp_dir) @@ -38,10 +40,12 @@ def builder(apk, index, requirement, upload, remote): try: build_wheels(requirement, wheels_index, wheels_dir) except CalledProcessError: - pass + exit_code = 109 run_upload(upload, output, remote) + sys.exit(exit_code) + if __name__ == "__main__": builder() # pylint: disable=no-value-for-parameter diff --git a/builder/pip.py b/builder/pip.py index 310c83dc..d219da6c 100644 --- a/builder/pip.py +++ b/builder/pip.py @@ -14,7 +14,7 @@ def build_wheels(requirement: Path, index: str, output: Path) -> None: build_env['MAKEFLAGS'] = f"-j{cpu}" result = subprocess.run( - f"pip3 wheel --wheel-dir {output} --find-links {index} --requirement {requirement}", + f"pip3 wheel --progress-bar ascii --wheel-dir {output} --find-links {index} --requirement {requirement}", shell=True, stdout=sys.stdout, stderr=sys.stderr, env=build_env )