mirror of https://github.com/python/cpython.git
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.
This commit is contained in:
parent
d6abf5d8c7
commit
8ddc3f0fa6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue