🔨 Fix context directory, removing distutils reference. (#508)

Co-authored-by: richard <richard@dotmodus>
This commit is contained in:
Richard Larkin 2020-05-28 07:16:54 +02:00 committed by GitHub
parent 6d00b7940c
commit 98345a662e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View file

@ -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",

View file

@ -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)