🔨 Fix context directory, removing distutils reference. (#508)
Co-authored-by: richard <richard@dotmodus>
This commit is contained in:
parent
6d00b7940c
commit
98345a662e
2 changed files with 1 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
|||
BROKEN_RECIPES = set(
|
||||
[
|
||||
# 'distutils.core' is not a package
|
||||
# https://github.com/kivy/kivy-ios/issues/467
|
||||
"jinja2",
|
||||
# bad install directory or PYTHONPATH
|
||||
# https://github.com/kivy/kivy-ios/issues/468
|
||||
"werkzeug",
|
||||
|
|
|
@ -16,10 +16,8 @@ class Jinja2Recipe(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/setuptools/distutils.core/g", "./setup.py", _env=build_env)
|
||||
shprint(hostpython, "setup.py", "install", "--prefix", dest_dir, _env=build_env)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue