Skip to content

Commit

Permalink
Merge pull request kivy#1645 from inclement/stop_build_on_compileall_…
Browse files Browse the repository at this point in the history
…error

Made build.py stop running if compileall failed
  • Loading branch information
AndreMiras authored Jan 31, 2019
2 parents c86d9ec + 9f8e300 commit fd3e844
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pythonforandroid/bootstraps/common/build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,13 @@ def compile_dir(dfn, optimize_python=True):
if optimize_python:
# -OO = strip docstrings
args.insert(1, '-OO')
subprocess.call(args)
return_code = subprocess.call(args)

if return_code != 0:
print('Error while running "{}"'.format(' '.join(args)))
print('This probably means one of your Python files has a syntax '
'error, see logs above')
exit(1)


def make_package(args):
Expand Down

0 comments on commit fd3e844

Please sign in to comment.