Created
February 1, 2017 19:24
-
-
Save tejastank/8773b8f07114460f26ddd196056b4b3f to your computer and use it in GitHub Desktop.
python kivy android apps package, snippetbucket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#p4a is now available on on Pypi, so you can install it using pip: | |
pip install python-for-android | |
#You can also test the master branch from Github using: | |
pip install git+https://github.com/kivy/python-for-android.git | |
#dependances | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install -y build-essential ccache git zlib1g-dev python2.7 python2.7-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-7-jdk unzip ant ccache | |
# apk need for build | |
sudo pip install buildozer | |
#Once you have it installed, go to your project directory and type: | |
buildozer init | |
# edit the buildozer.spec, then | |
buildozer android_new debug deploy run | |
#https://github.com/kivy/buildozer Generic Python packager for Android and iOS | |
# more: https://python-for-android.readthedocs.io/en/latest/quickstart/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment