File tree Expand file tree Collapse file tree 6 files changed +11
-32
lines changed
pythonforandroid/recipes/kivy Expand file tree Collapse file tree 6 files changed +11
-32
lines changed Original file line number Diff line number Diff line change @@ -188,24 +188,10 @@ ready.
188
188
access. Defaults to 5000.
189
189
190
190
191
- pygame
192
- ~~~~~~
193
-
194
- You can use this with ``--bootstrap=pygame ``, or simply include the
195
- ``pygame `` recipe in your ``--requirements ``.
196
-
197
- The pygame bootstrap is the original backend used by Kivy, and still
198
- works fine for use with Kivy apps. It may also work for pure pygame
199
- apps, but hasn't been developed with this in mind.
200
-
201
- This bootstrap will eventually be deprecated in favour of sdl2, but
202
- not before the sdl2 bootstrap includes all the features that would be
203
- lost.
204
-
205
191
Build options
206
192
%%%%%%%%%%%%%
207
193
208
- The pygame bootstrap supports the following additional command line
194
+ The sdl2 bootstrap supports the following additional command line
209
195
options (this list may not be exhaustive):
210
196
211
197
- ``--private ``: The directory containing your project files.
Original file line number Diff line number Diff line change @@ -78,8 +78,7 @@ supply those that you need.
78
78
The Java bootstrap to use for your application. You mostly don't
79
79
need to worry about this or set it manually, as an appropriate
80
80
bootstrap will be chosen from your ``--requirements ``. Current
81
- choices are ``sdl2 `` or ``pygame ``; ``sdl2 `` is experimental but
82
- preferable where possible.
81
+ choices are ``sdl2 `` (used with Kivy and most other apps) or ``webview ``.
83
82
84
83
85
84
.. note :: These options are preliminary. Others will include toggles
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ grab an old (cached) package instead of a fresh one.
36
36
--name="App name" \
37
37
--version=x.y.z \
38
38
--android_api XY \
39
- --bootstrap=pygame or sdl2 \
39
+ --bootstrap=sdl2 \
40
40
--launcher \
41
41
--minsdk 13
42
42
@@ -91,12 +91,8 @@ it changes quickly and needs testing.
91
91
Source code
92
92
-----------
93
93
94
- .. |renpy | replace :: pygame org.renpy.android
95
94
.. |kivy | replace :: sdl2 org.kivy.android
96
95
97
- .. _renpy :
98
- https://github.com/kivy/python-for-android/tree/master/\
99
- pythonforandroid/bootstraps/pygame/build/src/org/renpy/android
100
96
.. _sdl2 :
101
97
https://github.com/kivy/python-for-android/tree/master/\
102
98
pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Concepts
27
27
different sets of requirements.
28
28
29
29
- bootstrap: A bootstrap is the app backend that will start your
30
- application. Your application could use SDL2 as a base, or Pygame,
30
+ application. Your application could use SDL2 as a base,
31
31
or a web backend like Flask with a WebView bootstrap. Different
32
32
bootstraps can have different build options.
33
33
@@ -160,8 +160,6 @@ well as the requirements::
160
160
161
161
This will first build a distribution that contains `python2 ` and `kivy `, and using a SDL2 bootstrap. Python2 is here explicitely written as kivy can work with python2 or python3.
162
162
163
- You can also use ``--bootstrap=pygame ``, but this bootstrap is deprecated for use with Kivy and SDL2 is preferred.
164
-
165
163
Build a WebView application
166
164
~~~~~~~~~~~~~~~~~~~~~~~~~~~
167
165
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ The basic declaration of a recipe is as follows::
41
41
patches = ['some_fix.patch'] # Paths relative to the recipe dir
42
42
43
43
depends = ['kivy', 'sdl2'] # These are just examples
44
- conflicts = ['pygame ']
44
+ conflicts = ['python2 ']
45
45
46
46
recipe = YourRecipe()
47
47
@@ -306,14 +306,14 @@ the cython components and to install the Python module just like a
306
306
normal PythonRecipe.
307
307
308
308
For instance, the following is all that's necessary to make a recipe
309
- for Kivy (in this case, depending on Pygame rather than SDL2) ::
309
+ for Kivy::
310
310
311
311
class KivyRecipe(CythonRecipe):
312
- version = 'stable'
313
- url = 'https://github.com/kivy/kivy/archive/{version}.zip'
314
- name = 'kivy'
312
+ version = 'stable'
313
+ url = 'https://github.com/kivy/kivy/archive/{version}.zip'
314
+ name = 'kivy'
315
315
316
- depends = ['pygame ', 'pyjnius', 'android ']
316
+ depends = ['sdl2 ', 'pyjnius']
317
317
318
318
recipe = KivyRecipe()
319
319
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class KivyRecipe(CythonRecipe):
11
11
url = 'https://github.com/kivy/kivy/archive/{version}.zip'
12
12
name = 'kivy'
13
13
14
- depends = [( 'sdl2' , 'pygame' ) , 'pyjnius' ]
14
+ depends = ['sdl2' , 'pyjnius' ]
15
15
16
16
def cythonize_build (self , env , build_dir = '.' ):
17
17
super (KivyRecipe , self ).cythonize_build (env , build_dir = build_dir )
You can’t perform that action at this time.
0 commit comments