import new p4a

This commit is contained in:
zeppi 2022-12-02 15:15:34 -05:00
parent d9d8195764
commit a712121c3c
3036 changed files with 445600 additions and 3262 deletions
p4a/pythonforandroid

View file

@ -0,0 +1,20 @@
from pythonforandroid.recommendations import check_python_version
from pythonforandroid.util import BuildInterruptingException, handle_build_exception
def main():
"""
Main entrypoint for running python-for-android as a script.
"""
try:
# Check the Python version before importing anything heavier than
# the util functions. This lets us provide a nice message about
# incompatibility rather than having the interpreter crash if it
# reaches unsupported syntax from a newer Python version.
check_python_version()
from pythonforandroid.toolchain import ToolchainCL
ToolchainCL()
except BuildInterruptingException as exc:
handle_build_exception(exc)