Merge pull request #202 from kivy/ast_fix

Redirect Python-ast lookup to 'hostpython'. Fixes #201
This commit is contained in:
Richard Larkin 2016-07-13 11:58:30 +02:00 committed by GitHub
commit a92f98ec5e

View file

@ -75,6 +75,11 @@ class HostpythonRecipe(Recipe):
build_env = arch.get_env()
build_dir = self.get_build_dir(arch.arch)
build_env["PATH"] = os.environ["PATH"]
# Compiling sometimes looks for Python-ast.py in the 'Python' i.s.o.
# the 'hostpython' folder. Create a symlink to fix. See issue #201
shprint(sh.ln, "-s",
join(build_dir, "hostpython"),
join(build_dir, "Python"))
shprint(sh.make,
"-C", build_dir,
"bininstall", "inclinstall",