Skip to content

Commit eeb162b

Browse files
committed
Merge branch 'master' of ssh://github.com/kivy/python-for-android
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
2 parents 1c067f2 + da9335a commit eeb162b

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

distribute.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function push_arm() {
9292
#export OFLAG="-O2"
9393

9494
export CFLAGS="-mandroid $OFLAG -fomit-frame-pointer --sysroot $NDKPLATFORM"
95-
if [ $ARCH == "armeabi-v7a" ]; then
95+
if [ "X$ARCH" == "Xarmeabi-v7a" ]; then
9696
CFLAGS+=" -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -mthumb"
9797
fi
9898
export CXXFLAGS="$CFLAGS"

docs/source/prerequisites.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Prerequisites
22
=============
33

4+
.. note::
5+
There is a VirtualBox Image we provide with the prerequisites along with
6+
Android SDK and NDK preinstalled to ease your installation woes. You can download it from `here <http://www.google.com/url?sa=D&q=https://docs.google.com/file/d/0B1WO07-OL50_VDNESDRUaDhXSmM/edit&usg=AFQjCNGrsg0SU8EMgAcLHWxbjSe8KM2kyA>`__.
7+
48
.. warning::
59

610
The current version is tested only on Ubuntu oneiric (11.10) and precise
@@ -58,5 +62,5 @@ After installing them, export both installation path, NDK version and API to use
5862

5963
Also, you must configure you're PATH to add the ``android`` binary::
6064

61-
export PATH=/path/to/android-ndk:/path/to/android-sdk-linux/tools:$PATH
65+
export PATH=$ANDROIDNDK:$ANDROIDSDK/tools:$PATH
6266

recipes/hostpython/recipe.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ function build_hostpython() {
2424

2525
try ./configure
2626
try make -j5
27-
try mv python hostpython
2827
try mv Parser/pgen hostpgen
29-
#try mkdir -p ../prebuilt/Python-$PYVERSION/lib
30-
#try cp hostpython ../prebuilt/Python-$PYVERSION/
31-
#try cp hostpgen ../prebuilt/Python-$PYVERSION/
32-
#try cp build/lib.*/*.so ../prebuilt/Python-$PYVERSION/lib/
33-
#try cd ..
28+
29+
if [ -f python.exe ]; then
30+
try mv python.exe hostpython
31+
elif [ -f python ]; then
32+
try mv python hostpython
33+
else
34+
error "Unable to found the python executable?"
35+
exit 1
36+
fi
3437
}
3538

3639
function postbuild_hostpython() {

0 commit comments

Comments
 (0)