Main entrypoint for running python-for-android as a script.
()
| 3 | |
| 4 | |
| 5 | def main(): |
| 6 | """ |
| 7 | Main entrypoint for running python-for-android as a script. |
| 8 | """ |
| 9 | |
| 10 | try: |
| 11 | # Check the Python version before importing anything heavier than |
| 12 | # the util functions. This lets us provide a nice message about |
| 13 | # incompatibility rather than having the interpreter crash if it |
| 14 | # reaches unsupported syntax from a newer Python version. |
| 15 | check_python_version() |
| 16 | |
| 17 | from pythonforandroid.toolchain import ToolchainCL |
| 18 | ToolchainCL() |
| 19 | except BuildInterruptingException as exc: |
| 20 | handle_build_exception(exc) |