Fix markupsafe recipe (#505)
* Fix imports from distutils
* Remove markupsafe exclusion
* Fix python build path
* Remove distutils injection
* 💄 Pep8 fix
Co-authored-by: richard <richard@dotmodus>
This commit is contained in:
parent
45875155c5
commit
6d00b7940c
2 changed files with 1 additions and 5 deletions
|
@ -2,9 +2,6 @@ BROKEN_RECIPES = set(
|
|||
[
|
||||
# 'distutils.core' is not a package
|
||||
# https://github.com/kivy/kivy-ios/issues/467
|
||||
"markupsafe",
|
||||
# depends on markupsafe
|
||||
# https://github.com/kivy/kivy-ios/issues/466
|
||||
"jinja2",
|
||||
# bad install directory or PYTHONPATH
|
||||
# https://github.com/kivy/kivy-ios/issues/468
|
||||
|
|
|
@ -16,11 +16,10 @@ class MarkupSafeRecipe(PythonRecipe):
|
|||
os.chdir(build_dir)
|
||||
hostpython = sh.Command(self.ctx.hostpython)
|
||||
build_env = arch.get_env()
|
||||
dest_dir = join(self.ctx.dist_dir, "root", "python")
|
||||
dest_dir = join(self.ctx.dist_dir, "root", "python3")
|
||||
build_env['PYTHONPATH'] = join(dest_dir, 'lib', 'python3.8', '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) # noqa: W605
|
||||
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
|
||||
|
|
Loading…
Add table
Reference in a new issue