8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our 8000 documentation.
There was an error while loading. Please reload this page.
1 parent 7f8242f commit 5a28743Copy full SHA for 5a28743
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