summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-04-29 21:48:46 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-04-29 21:48:46 (GMT)
commit8ddc3f0fa6e0e72a6534906037ca08779843c3f5 (patch)
treef25ce1cb667e020f3d19a07f967c95fc4a69ee8f /Mac
parentd6abf5d8c75103eb22e06b6c16a79fece9fc1295 (diff)
downloadcpython-8ddc3f0fa6e0e72a6534906037ca08779843c3f5.zip
cpython-8ddc3f0fa6e0e72a6534906037ca08779843c3f5.tar.gz
cpython-8ddc3f0fa6e0e72a6534906037ca08779843c3f5.tar.bz2
The new bundlebuilder-generated applets contain an absolute reference
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.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/OSX/Dist/resources/postflight11
1 files changed, 10 insertions, 1 deletions
diff --git a/Mac/OSX/Dist/resources/postflight b/Mac/OSX/Dist/resources/postflight
index 4caa2b0..e7cb8f2 100755
--- a/Mac/OSX/Dist/resources/postflight
+++ b/Mac/OSX/Dist/resources/postflight
@@ -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