@@ -17,20 +17,20 @@ Installation
17
17
18
18
The easiest way to install is with pip. You need to have setuptools installed, but then can do::
19
19
20
- pip install git+https://github.com/inclement /python-for-android-revamp .git
21
-
20
+ pip install git+https://github.com/kivy /python-for-android.git@revamp
21
+
22
22
This should install python-for-android (though you may need to run as root or add --user).
23
23
24
24
You could also install python-for-android manually, either via git::
25
25
26
- git clone https://github.com/inclement /python-for-android-revamp .git
26
+ git clone -b revamp https://github.com/kivy /python-for-android.git
27
27
cd python-for-android
28
28
29
29
Or by direct download::
30
30
31
- wget https://github.com/inclement /python-for-android-revamp /archive/master .zip
32
- unzip master .zip
33
- cd python-for-android-revamp-master
31
+ wget https://github.com/kivy /python-for-android/archive/revamp .zip
32
+ unzip revamp .zip
33
+ cd python-for-android-revamp
34
34
35
35
Then in both cases run ``python setup.py install ``.
36
36
@@ -53,17 +53,18 @@ essential to set some env vars. First install the Android SDK and NDK, then:
53
53
- Set the ``ANDROIDSDK `` env var to the ``/path/to/the/sdk ``
54
54
- Set the ``ANDROIDNDK `` env var to the ``/path/to/the/ndk ``
55
55
- Set the ``ANDROIDAPI `` to the targeted API version (or leave it
56
- unset to use the default of ``14 ``.
56
+ unset to use the default of ``14 ``) .
57
57
- Set the ``ANDROIDNDKVER `` env var to the version of the NDK
58
58
downloaded, e.g. the current NDK is ``r10e `` (or leave it unset to
59
59
use the default of ``r9 ``.
60
60
61
- The process of setting these variables should be streamlined in the
61
+ The process of setting these variables will be streamlined in the
62
62
future, these options are preliminary.
63
63
64
64
To create a basic distribution, run .e.g::
65
65
66
- python-for-android create --dist_name=testproject --bootstrap=pygame --requirements=sdl,python2
66
+ python-for-android create --dist_name=testproject --bootstrap=pygame \
67
+ --requirements=sdl,python2
67
68
68
69
This will compile the distribution, which will take a few minutes, but
69
70
will keep you informed about its progress. The arguments relate to the
@@ -81,15 +82,18 @@ depends on. The full list of builtin internal recipes can be seen with
81
82
82
83
To build an APK, use the ``apk `` command::
83
84
84
- python-for-android apk --private /path/to/your/app --package=org.example.packagename --name="Your app name" --version=0.1
85
+ python-for-android apk --private /path/to/your/app --package=org.example.packagename \
86
+ --name="Your app name" --version=0.1
85
87
86
88
The arguments to ``apk `` can be anything accepted by the old
87
89
python-for-android build.py; the above is a minimal set to create a
88
90
basic app. You can see the list with ``python-for-android apk help ``.
89
91
90
92
A new feature of python-for-android is that you can do all of this with just one command::
91
93
92
- python-for-android apk --private /home/asandy/devel/planewave_frozen/ --package=net.inclem.planewavessdl2 --name="planewavessdl2" --version=0.5 --bootstrap=sdl2 --requirements=sdl,python2 --dist_name=testproject
94
+ python-for-android apk --private /path/to/your/app \
95
+ --package=org.example.packagename --name="Your app name" --version=0.5
96
+ --bootstrap=pygame --requirements=sdl,python2 --dist_name=testproject
93
97
94
98
This combines the previous ``apk `` command with the arguments to
95
99
``create ``, and works in exactly the same way; if no internal
0 commit comments