Skip to content

Commit 6ebd684

Browse files
author
Robert Pfeiffer
committed
pin pygame to tagged version, flake8 complicance
1 parent 5b4c80b commit 6ebd684

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pythonforandroid/recipes/pygame2/__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class Pygame2Recipe(CompiledComponentsPythonRecipe):
77

88
version = '2.0.0-dev7'
9-
url = 'https://github.com/pygame/pygame/archive/android.zip'
9+
url = 'https://github.com/pygame/pygame/archive/android-2.0.0-dev7.tar.gz'
1010

1111
site_packages_name = 'pygame'
1212
name = 'pygame2'
@@ -23,7 +23,6 @@ def prebuild_arch(self, arch):
2323
env['ANDROID_ROOT'] = join(self.ctx.ndk_platform, 'usr')
2424

2525
ndk_lib_dir = join(self.ctx.ndk_platform, 'usr', 'lib')
26-
ndk_include_dir = join(self.ctx.ndk_dir, 'sysroot', 'usr', 'include')
2726

2827
png = self.get_recipe('png', self.ctx)
2928
png_lib_dir = join(png.get_build_dir(arch.arch), '.libs')
@@ -36,8 +35,8 @@ def prebuild_arch(self, arch):
3635
sdl_includes=(
3736
" -I" + join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include') +
3837
" -L" + join(self.ctx.bootstrap.build_dir, "libs", str(arch)) +
39-
" -L" + png_lib_dir+ " -L" + jpeg_lib_dir+ " -L" + ndk_lib_dir ),
40-
sdl_ttf_includes=" -I"+join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_ttf'),
38+
" -L" + png_lib_dir + " -L" + jpeg_lib_dir + " -L" + ndk_lib_dir),
39+
sdl_ttf_includes="-I"+join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_ttf'),
4140
sdl_image_includes="-I"+join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_image'),
4241
sdl_mixer_includes="-I"+join(self.ctx.bootstrap.build_dir, 'jni', 'SDL2_mixer'),
4342
jpeg_includes="-I"+jpeg_inc_dir,

0 commit comments

Comments
 (0)