We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f8242f + 5a28743 commit 9fdfe59Copy full SHA for 9fdfe59
pythonforandroid/recipes/android/__init__.py
@@ -4,6 +4,7 @@
4
from pythonforandroid import logger
5
6
from os.path import join
7
+from sys import version_info
8
9
10
class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe):
@@ -30,7 +31,8 @@ def prebuild_arch(self, arch):
30
31
th = '#define {} {}\n'
32
tpy = '{} = {}\n'
33
- bootstrap = bootstrap_name = self.ctx.bootstrap.name.decode('utf-8')
34
+ bootstrap = self.ctx.bootstrap.name
35
+ bootstrap = bootstrap_name = bootstrap if version_info >= (3, ) else bootstrap.decode('utf-8')
36
is_sdl2 = bootstrap_name in ('sdl2', 'sdl2python3', 'sdl2_gradle')
37
is_pygame = bootstrap_name in ('pygame',)
38
is_webview = bootstrap_name in ('webview',)
0 commit comments