Skip to content
This repository was archived by the owner on Aug 15, 2017. It is now read-only.

Commit 849d61a

Browse files
committed
Corrections to packaging and documentation.
1 parent a2ef467 commit 849d61a

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

README.rst

+11-9
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ and ARM-v7A devices are not currently supported.
1313
This repository branch builds a packaged version of **Python 2.7.2**, using
1414
Android API level 14 (Android 4.0 or higher), using Android NDK 10b.
1515

16-
- Website:
17-
- Forum: https://groups.google.com/forum/?hl=fr#!forum/python-android
18-
- Mailing list: [email protected]
16+
Quickstart
17+
----------
1918

19+
Pre-built versions of the frameworks can be downloaded_, and added to
20+
your Android project.
2021

21-
Global overview
22-
---------------
22+
.. _downloaded: https://github.com/pybee/Python-Android-support/releases/download/2.7.2-b1/Python-2.7.2-Android-support.b1.tar.gz
23+
24+
Alternatively, to build the frameworks on your own:
2325

2426
#. Download Android NDK, SDK
2527

@@ -51,13 +53,13 @@ Global overview
5153
$ export ANDROIDSDK="/path/to/android/android-sdk-<platform>"
5254
$ export ANDROIDNDK="/path/to/android/android-ndk-r10b"
5355

54-
(Of course correct the paths mentioned in ANDROIDSDK and ANDROIDNDK)
56+
(of course, update these paths to point to the actual SDK and NDK directories)
5557

56-
#. Clone Python-Android-support::
58+
#. Clone the `Python-Android-support` repository::
5759

58-
$ git clone git://github.com/kivy/Python-Android-support
60+
$ git clone git://github.com/pybee/Python-Android-support
5961

60-
#. Build a distribution with OpenSSL module, PIL and Kivy::
62+
#. Build the distribution::
6163

6264
$ cd Python-Android-support
6365
$ ./build.sh

build.sh

+12-13
Original file line numberDiff line numberDiff line change
@@ -748,34 +748,33 @@ function run_distribute() {
748748

749749
cd "$DIST_PATH"
750750
debug "Create Python directory structure"
751-
try mkdir -p python
752-
try mkdir -p python/app
753-
try mkdir -p python/app_packages
751+
try mkdir -p app
752+
try mkdir -p app_packages
754753

755754
debug "Copy python distribution"
756755
# $HOSTPYTHON -OO -m compileall $BUILD_PATH/python-install
757-
try cp -a "$BUILD_PATH/python-install" python/python
756+
try cp -a "$BUILD_PATH/python-install" python
758757

759758
debug "Remove non-distributed parts of Python install"
760-
try rm -rf python/python/bin
761-
try rm -rf python/python/share
762-
try rm -rf python/python/lib/pkgconfig
763-
try rm -rf python/python/lib/libpython2.7.so
759+
try rm -rf python/bin
760+
try rm -rf python/share
761+
try rm -rf python/lib/pkgconfig
762+
try rm -rf python/lib/libpython2.7.so
764763

765764
debug "Copy libs"
766765
try cp -a "$BUILD_PATH/libs" .
767766

768767
debug "Install rubicon"
768+
769769
# (Naive) Install of Python library
770-
try cp -r "$BUILD_rubicon/rubicon" python/app_packages
770+
try cp -r "$BUILD_rubicon/rubicon" python/lib/python2.7/site-packages
771771

772-
debug "Install accessible copy of Rubicon library"
773-
try mkdir -p python/rubicon/$ARCH
774-
try cp -r libs/$ARCH/librubicon.so python/rubicon/$ARCH/librubicon.so
772+
debug "Fix permissions"
773+
try cp -a "$BUILD_PATH/libs" .
775774

776775
debug "Strip libraries"
777776
push_arm
778-
try find "$DIST_PATH/python/python" "$DIST_PATH/libs" -iname '*.so' -exec $STRIP {} \;
777+
try find "$DIST_PATH/libs" -iname '*.so' -exec $STRIP {} \;
779778
pop_arm
780779
}
781780

0 commit comments

Comments
 (0)