Skip to content

Commit 89e5fe8

Browse files
committed
Removed some more pygame references
1 parent c419c6c commit 89e5fe8

File tree

6 files changed

+2
-63
lines changed

6 files changed

+2
-63
lines changed

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):
1414

1515
src_filename = 'src'
1616

17-
depends = [('pygame', 'sdl2', 'genericndkbuild'),
18-
'pyjnius']
17+
depends = [('sdl2', 'genericndkbuild'), 'pyjnius']
1918

2019
config_env = {}
2120

@@ -39,17 +38,13 @@ def prebuild_arch(self, arch):
3938
bootstrap = bootstrap_name = ctx_bootstrap
4039

4140
is_sdl2 = bootstrap_name in ('sdl2', 'sdl2python3', 'sdl2_gradle')
42-
is_pygame = bootstrap_name in ('pygame',)
4341
is_webview = bootstrap_name in ('webview',)
4442

4543
if is_sdl2 or is_webview:
4644
if is_sdl2:
4745
bootstrap = 'sdl2'
4846
java_ns = 'org.kivy.android'
4947
jni_ns = 'org/kivy/android'
50-
elif is_pygame:
51-
java_ns = b'org.renpy.android'
52-
jni_ns = b'org/renpy/android'
5348
else:
5449
logger.error((
5550
'unsupported bootstrap for android recipe: {}'
@@ -60,7 +55,6 @@ def prebuild_arch(self, arch):
6055
config = {
6156
'BOOTSTRAP': bootstrap,
6257
'IS_SDL2': int(is_sdl2),
63-
'IS_PYGAME': int(is_pygame),
6458
'PY2': int(will_build('python2')(self)),
6559
'JAVA_NAMESPACE': java_ns,
6660
'JNI_NAMESPACE': jni_ns,
@@ -88,8 +82,5 @@ def prebuild_arch(self, arch):
8882
fh.write(
8983
'#define SDL_ANDROID_GetJNIEnv SDL_AndroidGetJNIEnv\n'
9084
)
91-
elif is_pygame:
92-
fh.write('JNIEnv *SDL_ANDROID_GetJNIEnv(void);\n')
93-
9485

9586
recipe = AndroidRecipe()

pythonforandroid/recipes/android/src/setup.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,10 @@
33

44
library_dirs = ['libs/' + os.environ['ARCH']]
55
lib_dict = {
6-
'pygame': ['sdl'],
76
'sdl2': ['SDL2', 'SDL2_image', 'SDL2_mixer', 'SDL2_ttf']
87
}
98
sdl_libs = lib_dict[os.environ['BOOTSTRAP']]
109

11-
renpy_sound = Extension('android._android_sound',
12-
['android/_android_sound.c', 'android/_android_sound_jni.c', ],
13-
libraries=sdl_libs + ['log'],
14-
library_dirs=library_dirs)
15-
1610
modules = [Extension('android._android',
1711
['android/_android.c', 'android/_android_jni.c'],
1812
libraries=sdl_libs + ['log'],
@@ -22,10 +16,6 @@
2216
libraries=['log'],
2317
library_dirs=library_dirs)]
2418

25-
if int(os.environ['IS_PYGAME']):
26-
modules.append(renpy_sound)
27-
28-
2919
setup(name='android',
3020
version='1.0',
3121
packages=['android'],

pythonforandroid/recipes/genericndkbuild/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GenericNDKBuildRecipe(BootstrapNDKRecipe):
88
url = None
99

1010
depends = [('python2', 'python3', 'python3crystax')]
11-
conflicts = ['sdl2', 'pygame', 'sdl']
11+
conflicts = ['sdl2', 'sdl']
1212

1313
def should_build(self, arch):
1414
return True

pythonforandroid/recipes/sdl/__init__.py

Lines changed: 0 additions & 38 deletions
This file was deleted.

pythonforandroid/recipes/sdl2/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ class LibSDL2Recipe(BootstrapNDKRecipe):
1111
dir_name = 'SDL'
1212

1313
depends = ['sdl2_image', 'sdl2_mixer', 'sdl2_ttf']
14-
conflicts = ['sdl', 'pygame', 'pygame_bootstrap_components']
1514

1615
patches = ['add_nativeSetEnv.patch']
1716

pythonforandroid/recipes/six/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ class SixRecipe(PythonRecipe):
66
version = '1.9.0'
77
url = 'https://pypi.python.org/packages/source/s/six/six-{version}.tar.gz'
88
depends = [('python2', 'python2legacy', 'python3', 'python3crystax')]
9-
# this recipe seems to control the dependency graph in some way, because
10-
# if removed the python2legacy recipe fails to solve the dependency order
11-
# when using the pygame bootstrap...so be careful removing this line!!!
129

1310

1411
recipe = SixRecipe()

0 commit comments

Comments
 (0)