import new p4a
This commit is contained in:
parent
d9d8195764
commit
a712121c3c
3036 changed files with 445600 additions and 3262 deletions
p4a/pythonforandroid
20
p4a/pythonforandroid/entrypoints.py
Normal file
20
p4a/pythonforandroid/entrypoints.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue