mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Scripts runs with pythonw no longer had full window manager access due
to the name change of Python.app/Contents/MacOS/python to Python.app/Contents/MacOS/Python. Fixes #776116.
This commit is contained in:
parent
5943b4ac10
commit
dffeaf4732
2 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ ln -fsh python$PYVER $TOOLDIR/python
|
||||||
rm -f $TOOLDIR/pythonw$PYVER
|
rm -f $TOOLDIR/pythonw$PYVER
|
||||||
cat > $TOOLDIR/pythonw$PYVER <<EOF
|
cat > $TOOLDIR/pythonw$PYVER <<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec "$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/python" "\$@"
|
exec "$DEST/Library/Frameworks/Python.framework/Versions/$PYVER/Resources/Python.app/Contents/MacOS/Python" "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $TOOLDIR/pythonw$PYVER
|
chmod +x $TOOLDIR/pythonw$PYVER
|
||||||
ln -fsh pythonw$PYVER $TOOLDIR/pythonw
|
ln -fsh pythonw$PYVER $TOOLDIR/pythonw
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ APPINSTALLDIR=$(prefix)/Resources/Python.app
|
||||||
|
|
||||||
# Variables for installing the "normal" unix binaries
|
# Variables for installing the "normal" unix binaries
|
||||||
INSTALLED_PYTHON=$(prefix)/bin/python
|
INSTALLED_PYTHON=$(prefix)/bin/python
|
||||||
INSTALLED_PYTHONW=$(APPINSTALLDIR)/Contents/MacOS/python
|
INSTALLED_PYTHONW=$(APPINSTALLDIR)/Contents/MacOS/Python
|
||||||
|
|
||||||
# Items more-or-less copied from the main Makefile
|
# Items more-or-less copied from the main Makefile
|
||||||
DIRMODE=755
|
DIRMODE=755
|
||||||
|
|
@ -230,7 +230,7 @@ installmacsubtree:
|
||||||
# We use the full name here in stead of $(INSTALLED_PYTHONW), because
|
# We use the full name here in stead of $(INSTALLED_PYTHONW), because
|
||||||
# the latter may be overridden by Makefile.jaguar when building for a pre-installed
|
# the latter may be overridden by Makefile.jaguar when building for a pre-installed
|
||||||
# /usr/bin/python
|
# /usr/bin/python
|
||||||
$(APPINSTALLDIR)/Contents/MacOS/python: install_Python
|
$(APPINSTALLDIR)/Contents/MacOS/Python: install_Python
|
||||||
|
|
||||||
# $(INSTALLED_PYTHON) has to be done by the main Makefile, we cannot do that here.
|
# $(INSTALLED_PYTHON) has to be done by the main Makefile, we cannot do that here.
|
||||||
# At least this rule will give an error if it doesn't exist.
|
# At least this rule will give an error if it doesn't exist.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue