]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
The new bundlebuilder-generated applets contain an absolute reference
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 29 Apr 2003 21:48:46 +0000 (21:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 29 Apr 2003 21:48:46 +0000 (21:48 +0000)
to the Python used to create them (in the #! line). Therefore, when your
Python installation is moved the applets become invalid. As the
binary distribution is installed in a different place than where it was
created we need to fix up the #! lines.

Mac/OSX/Dist/resources/postflight

index 4caa2b0cb3c1efd00938ba6dd101d84b0599e2fa..e7cb8f2c96533ddc43f4ba269e14b4fcd8fe42f6 100755 (executable)
@@ -68,7 +68,16 @@ fi
 
 
 # The link in the app bundles needs updated.
+installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python
 for app in BuildApplet IDLE PackageManager PythonIDE; do
-    ln -fsh $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python \
+    ln -fsh  $installed_python \
           $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS
+    ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy
+1c
+#!$installed_python
+.
+w
+q
+xyzzy
+    
 done