diff --git a/recipes/click/__init__.py b/recipes/click/__init__.py index b141f78..ff0c8ee 100644 --- a/recipes/click/__init__.py +++ b/recipes/click/__init__.py @@ -16,6 +16,8 @@ class ClickRecipe(PythonRecipe): build_env = arch.get_env() dest_dir = join(self.ctx.dist_dir, "root", "python") build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') + cmd = sh.Command("sed") + shprint(cmd, "-i", "", "s/setuptools/distutils.core/g", "./setup.py", _env=build_env) shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env) recipe = ClickRecipe() diff --git a/recipes/flask/__init__.py b/recipes/flask/__init__.py index 46ebda9..60bd798 100644 --- a/recipes/flask/__init__.py +++ b/recipes/flask/__init__.py @@ -16,6 +16,8 @@ class FlaskRecipe(PythonRecipe): build_env = arch.get_env() dest_dir = join(self.ctx.dist_dir, "root", "python") build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') + cmd = sh.Command("sed") + shprint(cmd, "-i", "", "s/setuptools/distutils.core/g", "./setup.py", _env=build_env) shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env) recipe = FlaskRecipe() diff --git a/recipes/itsdangerous/__init__.py b/recipes/itsdangerous/__init__.py index a6f9f34..e5a3182 100644 --- a/recipes/itsdangerous/__init__.py +++ b/recipes/itsdangerous/__init__.py @@ -16,6 +16,8 @@ class ItsDangerousRecipe(PythonRecipe): build_env = arch.get_env() dest_dir = join(self.ctx.dist_dir, "root", "python") build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') + cmd = sh.Command("sed") + shprint(cmd, "-i", "", "s/setuptools/distutils.core/g", "./setup.py", _env=build_env) shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env) recipe = ItsDangerousRecipe() diff --git a/recipes/jinja2/__init__.py b/recipes/jinja2/__init__.py index 5c892bd..75d1a18 100644 --- a/recipes/jinja2/__init__.py +++ b/recipes/jinja2/__init__.py @@ -16,6 +16,8 @@ class Jinja2Recipe(PythonRecipe): build_env = arch.get_env() dest_dir = join(self.ctx.dist_dir, "root", "python") build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') + cmd = sh.Command("sed") + shprint(cmd, "-i", "", "s/setuptools/distutils.core/g", "./setup.py", _env=build_env) shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env) recipe = Jinja2Recipe() diff --git a/recipes/markupsafe/__init__.py b/recipes/markupsafe/__init__.py index 09a826a..ca3dcf2 100644 --- a/recipes/markupsafe/__init__.py +++ b/recipes/markupsafe/__init__.py @@ -16,6 +16,11 @@ class MarkupSafeRecipe(PythonRecipe): build_env = arch.get_env() dest_dir = join(self.ctx.dist_dir, "root", "python") build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python2.7', 'site-packages') + cmd = sh.Command("sed") + shprint(cmd, "-i", "", "s/,.*Feature//g", "./setup.py", _env=build_env) + shprint(cmd, "-i", "", "s/setuptools/distutils.core/g", "./setup.py", _env=build_env) + shprint(cmd, "-i", "", "/^speedups = Feature/,/^)$/s/.*//g", "./setup.py", _env=build_env) + shprint(cmd, "-i", "", "s/features\['speedups'\].*=.*speedups/pass/g", "./setup.py", _env=build_env) shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)