Skip to content

Instantly share code, notes, and snippets.

@tejastank
Created February 1, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tejastank/8773b8f07114460f26ddd196056b4b3f to your computer and use it in GitHub Desktop.
Save tejastank/8773b8f07114460f26ddd196056b4b3f to your computer and use it in GitHub Desktop.
python kivy android apps package, snippetbucket
#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