From b6b30e9576352ed010985d8c72b4aad8133e05e1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 May 2008 05:20:39 -0700 Subject: [PATCH] IGN:... --- osx_installer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osx_installer.py b/osx_installer.py index 05ea179792..42553cbed2 100644 --- a/osx_installer.py +++ b/osx_installer.py @@ -165,6 +165,11 @@ _check_symlinks_prescript() #deps = BuildAPP.qt_dependencies(path) + def fix_python_dependencies(self, files): + for f in files: + subprocess.check_call(['/usr/bin/install_name_tool', '-change', '/Library/Frameworks/Python.framework/Versions/2.5/Python', '@executable_path/../Frameworks/Python.framework/Versions/2.5/Python', f]) + + def build_plugins(self): cwd = os.getcwd() qmake = '/Users/kovid/qt/bin/qmake' @@ -181,7 +186,7 @@ _check_symlinks_prescript() subprocess.check_call(['/usr/bin/make']) files.append((os.path.abspath('pictureflow.so'), 'pictureflow.so')) subprocess.check_call(['/usr/bin/install_name_tool', '-change', 'libpictureflow.0.dylib', '@executable_path/../Frameworks/libpictureflow.dylib', 'pictureflow.so']) - subprocess.check_call(['/usr/bin/install_name_tool', '-change', '/System/Library/Frameworks/Python.framework/Versions/2.5/Python', '@executable_path/../Frameworks/Python.framework/Versions/2.5/Python', 'pictureflow.so']) + self.fix_python_dependencies((files[0][0], files[1][0])) for i in range(2): deps = BuildAPP.qt_dependencies(files[i][0]) BuildAPP.fix_qt_dependencies(files[i][0], deps)