From 24b3ded9164b89855a207ba78b8299a61a41ed49 Mon Sep 17 00:00:00 2001 From: Richard Larkin Date: Mon, 4 Jul 2016 12:00:39 +0200 Subject: [PATCH 1/3] Redirect Python-ast lookup to 'hostpython'. Fixes #201 --- recipes/hostpython/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/hostpython/__init__.py b/recipes/hostpython/__init__.py index a1a0fd0..13284ce 100644 --- a/recipes/hostpython/__init__.py +++ b/recipes/hostpython/__init__.py @@ -75,6 +75,9 @@ class HostpythonRecipe(Recipe): build_env = arch.get_env() build_dir = self.get_build_dir(arch.arch) build_env["PATH"] = os.environ["PATH"] + shprint(sh.ln, "-s", + join(build_dir, "hostpython"), + join(build_dir, "Python")) shprint(sh.make, "-C", build_dir, "bininstall", "inclinstall", From 320c0808c09cbafe1651f8d32d310489d698f490 Mon Sep 17 00:00:00 2001 From: Richard Larkin Date: Mon, 11 Jul 2016 15:10:46 +0200 Subject: [PATCH 2/3] Added explanatory note --- recipes/hostpython/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/hostpython/__init__.py b/recipes/hostpython/__init__.py index 13284ce..ca3aac9 100644 --- a/recipes/hostpython/__init__.py +++ b/recipes/hostpython/__init__.py @@ -75,6 +75,8 @@ 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 'hospython' folder. Create a symlink to fix. See issue #201 shprint(sh.ln, "-s", join(build_dir, "hostpython"), join(build_dir, "Python")) From 3e4eb4bfed404442806e40e8bd7d451a6589b0ce Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Mon, 11 Jul 2016 21:43:44 +0200 Subject: [PATCH 3/3] Grammar tweaks --- recipes/hostpython/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/hostpython/__init__.py b/recipes/hostpython/__init__.py index ca3aac9..e0e1588 100644 --- a/recipes/hostpython/__init__.py +++ b/recipes/hostpython/__init__.py @@ -75,8 +75,8 @@ 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 'hospython' folder. Create a symlink to fix. See issue #201 + # 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"))