Skip to content

bithub/bit.recipe.python_for_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bit.recipe.python_for_android
=============================

This package allows you to build python-based android packages from a buildout environment

You will need a copy of the android sdk and ndks for your project environments

These can be installed using bit.recipe.android_sdk and bit.recipe.android_ndk

A complete buildout example might be:

[buildout]
parts = my_android_sdk
      my_android_ndk
      my_kivy

[my_android_sdk]
recipe = bit.recipe.android_sdk
apis = 8
sdk = http://dl.google.com/android/android-sdk_r14-linux.tgz

[my_android_ndk]
recipe = bit.recipe.android_ndk
version = r7
ndk = http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2

[my_kivy]
recipe = bit.recipe.python_for_android
package = org.bitfoundation.my_kivy
src = git@github.com:kivy/python-for-android
sdk = parts/my_android_sdk
ndk = parts/my_android_ndk
ndk_version = ${my_android_ndk:version}
api = 8
recipes = kivy
version = 0.0.1
public = var/my_kivy/public
private = var/my_kivy/private
orientation = portrait
permissions = INTERNET


This can then be installed as follows

./bin/buildout


Once you have done this you can create your distribution

./bin/my_kivy dist


You can do a clean install or pass other arguments to the distribute.sh script, ie:

./bin/my_kivy dist -f


Place your public/private resources into the folders specified ie: var/my_kivy/public, and build and install your android package

./bin/my_kivy build debug installd



Installing
==========

The following instructions are for a recent version of Ubuntu or Debian Wheezy.

Its not possible to run the default python-for-android environment on Debian Squeeze due to an outdated Cython version, although its possible to create a custom version of Cython with your buildout

This package may work on other platforrms with the necessary dependencies


Install dependencies

 # apt-get install build-essential python-dev


Install virtualenv

 # apt-get install virtualenv


Create your buildout environment

 # mkdir android
 # cd android
 # virtualenv --no-site-packages .
 # wget bootsrap.py


Create a file called buildout.cfg containing a configuration similar to example provided above

Run bootstrap

 # ./bin/python bootstrap.py


Finally, run buildout

 # ./bin/buildout

About

zc.buildout recipe for building python for android projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages