Skip to content

Commit

Permalink
Merge pull request #403 from andyDoucette/master
Browse files Browse the repository at this point in the history
Adding README.rst entries for how to use buildozer with python3
  • Loading branch information
tito committed Apr 17, 2017
2 parents 5538431 + 35ba75d commit 517bb71
Showing 1 changed file with 46 additions and 5 deletions.
51 changes: 46 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ is intended in the future.
Note that this tool has nothing to do with the eponymous online build service
`buildozer.io <http://buildozer.io />`_.

Usage example
-------------
Installing Buildozer with python2 support:
------------------------------------------

#. Install buildozer::
#. Install buildozer::

# via pip (latest stable, recommended)
sudo pip install buildozer
Expand All @@ -35,13 +35,54 @@ Usage example
python setup.py build
sudo pip install -e .

#. Go into your application directory and do::
#. Go into your application directory and run::

buildozer init
# edit the buildozer.spec, then
buildozer android_new debug deploy run

Example of commands::
Installing Buildozer with python3 support:
------------------------------------------

The pip package does not yet support python3.

#. Install buildozer from source::

git clone https://github.com/kivy/buildozer
cd buildozer
python setup.py build
sudo pip install -e

#. Download and extract the crystax ndk somewhere (~/.buildozer/crystax-ndk is one option): https://www.crystax.net/en/download
#. Go into your application directory and execute::

buildozer init

#. Edit the buildozer.spec file to fit your application

#. Make sure the following lines are in your buildozer.spec file.::
#Require python3crystax:
requirements = python3crystax,kivy

#Point to the directory where you extracted the crystax-ndk:
android.ndk_path = <Your install path here. Use ~ for home DIR>

#To fix a "configparser.NoOptionError: No option 'p4a.local_recipes' in section: 'app'" issue:
p4a.local_recipes =

#. Finally, build, deploy and run the app on your phone::

buildozer android_new debug deploy run

#. Please note the "android_new" buildozer target, and use that for any and all buildozer commands you run (even if the docs just say "android"). Python3 only works with the **android_new** toolchain.



Examples of Buildozer commands:
--------------------------------

::

# buildozer target command
buildozer android_new clean
Expand Down

0 comments on commit 517bb71

Please sign in to comment.