8000 Merge pull request #704 from brussee/fix-from_crystax · loaf/python-for-android@3e5c2a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e5c2a0

Browse files
committed
Merge pull request kivy#704 from brussee/fix-from_crystax
Fix python_recipe.from_crystax
2 parents 71cbd73 + ac7496d commit 3e5c2a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythonforandroid/archs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_env(self, with_flags_in_cc=True):
111111

112112
env['ARCH'] = self.arch
113113

114-
if self.ctx.python_recipe.from_crystax:
114+
if self.ctx.python_recipe and self.ctx.python_recipe.from_crystax:
115115
env['CRYSTAX_PYTHON_VERSION'] = self.ctx.python_recipe.version
116116

117117
return env

pythonforandroid/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def build_recipes(build_order, python_modules, ctx):
564564
# 4) biglink everything
565565
# AND: Should make this optional
566566
info_main('# Biglinking object files')
567-
if not ctx.python_recipe.from_crystax:
567+
if not ctx.python_recipe or not ctx.python_recipe.from_crystax:
568568
biglink(ctx, arch)
569569
else:
570570
info('NDK is crystax, skipping biglink (will this work?)')

0 commit comments

Comments
 (0)
0