mirror of https://github.com/python/cpython.git
- Install a symlink to the documentation (which lives in the framework)
in Python.app, and refer to it in Info.plist. This makes Apple Help Viewer recognize the Python documentation. - Changed the externally visible name of Python.app to "Python" (was PythonW).
This commit is contained in:
parent
c58eafbe3e
commit
4684a09fc5
|
@ -25,6 +25,7 @@ INSTALL_SYMLINK=/usr/bin/install -l as
|
|||
INSTALL_PROGRAM=${INSTALL}
|
||||
INSTALL_SCRIPT= ${INSTALL_PROGRAM}
|
||||
INSTALL_DATA= ${INSTALL} -m 644
|
||||
LN=ln
|
||||
STRIPFLAG=-s
|
||||
OPT=-g -O3 -Wall -Wstrict-prototypes -Wno-long-double -no-cpp-precomp \
|
||||
-fno-common -dynamic
|
||||
|
@ -116,6 +117,9 @@ install_Python: $(PYTHON)
|
|||
fi
|
||||
$(REZ) -useDF -o $(RESOURCEFILE) dialogs.r errors.r
|
||||
$(INSTALL_DATA) $(RESOURCEFILE) $(APPINSTALLDIR)/Contents/Resources/$(RESOURCEFILE)
|
||||
# Finally create the documentation symlink
|
||||
$(LN) -fsn ../../../../English.lproj/Documentation $(APPINSTALLDIR)/Contents/Resources/English.lproj/Documentation
|
||||
|
||||
|
||||
install_IDE: $(INSTALLED_PYTHONW)
|
||||
@if $(INSTALLED_PYTHONW) -c "import waste"; then ; else \
|
||||
|
|
|
@ -29,14 +29,21 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.3</string>
|
||||
|
||||
<key>CFBundleHelpBookFolder</key>
|
||||
<string>Documentation</string>
|
||||
<key>CFBundleHelpBookName</key>
|
||||
<string>Python Help</string>
|
||||
<key>CFBundleHelpTOCFile</key>
|
||||
<string>index.html</string>
|
||||
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>PythonInterpreter.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.python.pythonw</string>
|
||||
<string>org.python.python</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>PythonW</string>
|
||||
<string>Python</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Localized versions of Info.plist keys */
|
||||
|
||||
CFBundleName = "PythonW";
|
||||
CFBundleName = "Python";
|
||||
CFBundleShortVersionString = "Python Interpreter version 2.3";
|
||||
CFBundleGetInfoString = "Python Interpreter version 2.3, (c) 2002 Python Software Foundation.";
|
||||
CFBundleLongVersionString = "2.3, (c) 2002 Python Software Foundation.";
|
||||
|
|
Loading…
Reference in New Issue