8000 Force get python headers/linkages for inherited PythonRecipes that ne… · kivy/python-for-android@09d50b4 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 09d50b4

Browse files
author
Pol Canelles
committed
Force get python headers/linkages for inherited PythonRecipes that needs compilation: CompiledComponentsPythonRecipe, CppCompiledComponentsPythonRecipe and CythonRecipe
1 parent c6ae76f commit 09d50b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ class CompiledComponentsPythonRecipe(PythonRecipe):
872872

873873
build_cmd = 'build_ext'
874874

875+
call_hostpython_via_targetpython = False
876+
875877
def build_arch(self, arch):
876878
'''Build any cython components, then install the Python module by
877879
calling setup.py install with the target Python dir.
@@ -910,7 +912,6 @@ def rebuild_compiled_components(self, arch, env):
910912

911913
class CppCompiledComponentsPythonRecipe(CompiledComponentsPythonRecipe):
912914
""" Extensions that require the cxx-stl """
913-
call_hostpython_via_targetpython = False
914915

915916
def get_recipe_env(self, arch):
916917
env = super(CppCompiledComponentsPythonRecipe, self).get_recipe_env(arch)
@@ -944,6 +945,7 @@ class CythonRecipe(PythonRecipe):
944945
pre_build_ext = False
945946
cythonize = True
946947
cython_args = []
948+
call_hostpython_via_targetpython = False
947949

948950
def __init__(self, *args, **kwargs):
949951
super(CythonRecipe, self).__init__(*args, **kwargs)

0 commit comments

Comments
 (0)
0