kivy: with the new host python, fix the prefix.
This commit is contained in:
parent
2b3056d4db
commit
f50d5e509f
1 changed files with 2 additions and 2 deletions
|
@ -79,14 +79,14 @@ class KivyRecipe(Recipe):
|
||||||
hostpython = sh.Command(self.ctx.hostpython)
|
hostpython = sh.Command(self.ctx.hostpython)
|
||||||
build_env = self.get_kivy_env(arch)
|
build_env = self.get_kivy_env(arch)
|
||||||
shprint(hostpython, "setup.py", "install", "-O2",
|
shprint(hostpython, "setup.py", "install", "-O2",
|
||||||
"--root", join(build_dir, "iosbuild"),
|
"--prefix", join(build_dir, "iosbuild"),
|
||||||
_env=build_env)
|
_env=build_env)
|
||||||
dest_dir = join(self.ctx.dist_dir, "root", "python", "lib", "python2.7",
|
dest_dir = join(self.ctx.dist_dir, "root", "python", "lib", "python2.7",
|
||||||
"site-packages", "kivy")
|
"site-packages", "kivy")
|
||||||
if exists(dest_dir):
|
if exists(dest_dir):
|
||||||
shutil.rmtree(dest_dir)
|
shutil.rmtree(dest_dir)
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
join(build_dir, "iosbuild", "usr", "local", "lib",
|
join(build_dir, "iosbuild", "lib",
|
||||||
"python2.7", "site-packages", "kivy"),
|
"python2.7", "site-packages", "kivy"),
|
||||||
dest_dir)
|
dest_dir)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue