mirror of https://github.com/python/cpython
Only fix up pathnames in installed scripts when needed, i.e. when not installing
to /. Pathnames are correct for installing to / since the DESTDIR patch.
This commit is contained in:
parent
a93b3cc9c2
commit
e5370655dc
|
@ -66,24 +66,25 @@ if [ "$DEST" = "/" ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DEST" != "/" ]; then
|
||||||
# The link in the app bundles and in pydoc need updating.
|
# The link in the app bundles and in pydoc need updating.
|
||||||
installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python
|
installed_python=$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python
|
||||||
for app in BuildApplet IDLE PackageManager PythonIDE; do
|
for app in BuildApplet IDLE PackageManager PythonIDE; do
|
||||||
ln -fsh $installed_python \
|
ln -fsh $installed_python \
|
||||||
$DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS
|
$DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS
|
||||||
ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy
|
ed -s $DEST/Applications/MacPython-$PYVER/$app.app/Contents/MacOS/$app << xyzzy
|
||||||
1c
|
1c
|
||||||
#!$installed_python
|
#!$installed_python
|
||||||
.
|
.
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
xyzzy
|
xyzzy
|
||||||
ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
|
ed -s $DEST/Library/Frameworks/Python.framework/Versions/$PYVER/bin/pydoc << xyzzy
|
||||||
1c
|
1c
|
||||||
#!$installed_python
|
#!$installed_python
|
||||||
.
|
.
|
||||||
w
|
w
|
||||||
q
|
q
|
||||||
xyzzy
|
xyzzy
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue