kivy: with the new host python, fix the prefix.

This commit is contained in:
Mathieu Virbel 2015-02-11 12:53:19 +01:00
parent 2b3056d4db
commit f50d5e509f

View file

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