Last active
August 29, 2015 14:21
-
-
Save olymk2/61654dfcbc26b27df5ce to your computer and use it in GitHub Desktop.
Python for android vm setup script
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
#quick with wget http://tinyurl.com/py4asetup > setup.sh & chmod +x setup.sh | |
#python-4-android and buildozer requirements | |
apt-get install libc6-dev-i386 ia32-libs-multiarch ragel | |
apt-get install build-essential python-dev zlib1g-dev python-pip | |
pip install cython==0.21.2 | |
#checkout android if we are not using biuldozer, python for android does nto do this for you | |
mkdir -p /opt/android/ | |
cd /opt/android/ | |
wget dl.google.com/android/android-sdk_r21-linux.tgz | |
wget http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2 | |
tar -xvf android-sdk_r21-linux.tgz | |
tar -xvf android-ndk-r9d-linux-x86_64.tar.bz2 | |
export ANDROIDSDK="/opt/android/android-sdk-linux" | |
export ANDROIDNDK="/opt/android/android-ndk-r9d" | |
export ANDROIDNDKVER=r9 | |
export ANDROIDAPI=14 | |
#get the latest python for android | |
git clone https://github.com/olymk2/python-for-android.git | |
cd python-for-android | |
git checkout feature/freetype-recipe | |
./distribute.sh -f -m "kivy harfbuzz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment