use correct hostpython for pure python recipes
This commit is contained in:
parent
678a7739a0
commit
ed31d64e72
2 changed files with 7 additions and 2 deletions
|
@ -749,8 +749,9 @@ class PythonRecipe(Recipe):
|
|||
host_build = Recipe.get_recipe(host_name, self.ctx).get_build_dir()
|
||||
if host_name in ['hostpython2', 'hostpython3']:
|
||||
return join(host_build, 'native-build', 'python')
|
||||
elif host_name in ['hostpython3crystax', 'hostpython2legacy']:
|
||||
return join(host_build, 'hostpython')
|
||||
elif host_name in ['hostpython3crystax']:
|
||||
python_recipe = Recipe.get_recipe(host_name, self.ctx)
|
||||
return python_recipe.python_exe
|
||||
else:
|
||||
python_recipe = self.ctx.python_recipe
|
||||
return 'python{}'.format(python_recipe.version)
|
||||
|
|
|
@ -42,5 +42,9 @@ class Hostpython3Recipe(Recipe):
|
|||
link_dest = join(self.get_build_dir(), 'hostpython')
|
||||
shprint(sh.ln, '-sf', system_python, link_dest)
|
||||
|
||||
@property
|
||||
def python_exe(self):
|
||||
return join(self.get_build_dir(), 'hostpython')
|
||||
|
||||
|
||||
recipe = Hostpython3Recipe()
|
||||
|
|
Loading…
Reference in a new issue