[Python-checkins] r46040 - in python/trunk/Mac: OSX/IDLE/Info.plist OSX/IDLE/Makefile.in OSX/Makefile.in OSX/PythonLauncher/English.lproj/InfoPlist.strings OSX/PythonLauncher/Info.plist OSX/PythonLauncher/Makefile.in OSXResources/app/Resources/PythonApplet.icns
ronald.oussoren
python-checkins at python.org
Thu May 18 11:04:17 CEST 2006
Author: ronald.oussoren
Date: Thu May 18 11:04:15 2006
New Revision: 46040
Added:
python/trunk/Mac/OSX/IDLE/Info.plist
Removed:
python/trunk/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings
Modified:
python/trunk/Mac/OSX/IDLE/Makefile.in
python/trunk/Mac/OSX/Makefile.in
python/trunk/Mac/OSX/PythonLauncher/Info.plist
python/trunk/Mac/OSX/PythonLauncher/Makefile.in
python/trunk/Mac/OSXResources/app/Resources/PythonApplet.icns
Log:
Fix some minor issues with the generated application bundles on MacOSX
Added: python/trunk/Mac/OSX/IDLE/Info.plist
==============================================================================
--- (empty file)
+++ python/trunk/Mac/OSX/IDLE/Info.plist Thu May 18 11:04:15 2006
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleDocumentTypes</key>
+ <array>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>py</string>
+ <string>pyw</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>PythonSource.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>Python Script</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ </dict>
+ <dict>
+ <key>CFBundleTypeExtensions</key>
+ <array>
+ <string>pyc</string>
+ <string>pyo</string>
+ </array>
+ <key>CFBundleTypeIconFile</key>
+ <string>PythonCompiled.icns</string>
+ <key>CFBundleTypeName</key>
+ <string>Python Bytecode Document</string>
+ <key>CFBundleTypeRole</key>
+ <string>Editor</string>
+ </dict>
+ </array>
+ <key>CFBundleExecutable</key>
+ <string>IDLE</string>
+ <key>CFBundleGetInfoString</key>
+ <string>2.5, © 001-2006 Python Software Foundation</string>
+ <key>CFBundleIconFile</key>
+ <string>IDLE.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.python.IDLE</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>IDLE</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>2.5</string>
+ <key>CFBundleVersion</key>
+ <string>2.5</string>
+</dict>
+</plist>
Modified: python/trunk/Mac/OSX/IDLE/Makefile.in
==============================================================================
--- python/trunk/Mac/OSX/IDLE/Makefile.in (original)
+++ python/trunk/Mac/OSX/IDLE/Makefile.in Thu May 18 11:04:15 2006
@@ -1,3 +1,4 @@
+prefix=@prefix@
CC=@CC@
LD=@CC@
BASECFLAGS=@BASECFLAGS@
@@ -27,7 +28,8 @@
install: IDLE.app
test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
- cp -r IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
+ cp -PR IDLE.app "$(DESTDIR)$(PYTHONAPPSDIR)"
+ touch "$(DESTDIR)$(PYTHONAPPSDIR)/IDLE.app"
clean:
rm -rf IDLE.app
@@ -40,9 +42,11 @@
$(RUNSHARED) $(BUILDPYTHON) $(BUNDLEBULDER) \
--builddir=. \
--name=IDLE \
+ --link-exec \
+ --plist=$(srcdir)/Info.plist \
--mainprogram=$(srcdir)/idlemain.py \
--iconfile=$(srcdir)/../Icons/IDLE.icns \
- --bundle-id=org.python.IDLE \
--resource=$(srcdir)/../Icons/PythonSource.icns \
--resource=$(srcdir)/../Icons/PythonCompiled.icns \
+ --python=$(prefix)/Resources/Python.app/Contents/MacOS/Python \
build
Modified: python/trunk/Mac/OSX/Makefile.in
==============================================================================
--- python/trunk/Mac/OSX/Makefile.in (original)
+++ python/trunk/Mac/OSX/Makefile.in Thu May 18 11:04:15 2006
@@ -74,9 +74,10 @@
for fn in idle pydoc python-config ;\
do \
mv "$(DESTDIR)$(prefix)/bin/$${fn}" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\
- ln -sf "$${fn}$(VERSION)" "$${fn}" ;\
+ ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}" ;\
done
- rm -f "$(DESTDIR)$(prefix)/bin/smtpd.py"
+ mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py"
+ ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py"
pythonw: $(srcdir)/Tools/pythonw.c
@@ -142,7 +143,7 @@
$(BUILDPYTHON) $(srcdir)/../scripts/BuildApplet.py \
--destroot "$(DESTDIR)" \
--python $(INSTALLED_PYTHONAPP) \
- --output "$(DESTDIR)$(PYTHONAPPSDIR)/BuildApplet.app" \
+ --output "$(DESTDIR)$(PYTHONAPPSDIR)/Build Applet.app" \
$(srcdir)/../scripts/BuildApplet.py
MACLIBDEST=$(LIBDEST)/plat-mac
@@ -221,9 +222,9 @@
checkapplepython:
- @if ! $(BUILDPYTHON) $(srcdir)/Mac/OSX/fixapplepython23.py -n; then \
+ @if ! $(BUILDPYTHON) $(srcdir)/fixapplepython23.py -n; then \
echo "* WARNING: Apple-installed Python 2.3 will have trouble building extensions from now on."; \
- echo "* WARNING: Run $(srcdir)/Mac/OSX/fixapplepython23.py with \"sudo\" to fix this."; \
+ echo "* WARNING: Run $(srcdir)/fixapplepython23.py with \"sudo\" to fix this."; \
fi
Deleted: /python/trunk/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings
==============================================================================
Binary files /python/trunk/Mac/OSX/PythonLauncher/English.lproj/InfoPlist.strings Thu May 18 11:04:15 2006 and (empty file) differ
Modified: python/trunk/Mac/OSX/PythonLauncher/Info.plist
==============================================================================
--- python/trunk/Mac/OSX/PythonLauncher/Info.plist (original)
+++ python/trunk/Mac/OSX/PythonLauncher/Info.plist Thu May 18 11:04:15 2006
@@ -40,7 +40,7 @@
<key>CFBundleExecutable</key>
<string>PythonLauncher</string>
<key>CFBundleGetInfoString</key>
- <string>2.5, © 2001-2006 Python Software Foundation</string>
+ <string>2.5, © 001-2006 Python Software Foundation</string>
<key>CFBundleIconFile</key>
<string>PythonLauncher.icns</string>
<key>CFBundleIdentifier</key>
@@ -48,7 +48,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
- <string>PythonLauncher</string>
+ <string>Python Launcher</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Modified: python/trunk/Mac/OSX/PythonLauncher/Makefile.in
==============================================================================
--- python/trunk/Mac/OSX/PythonLauncher/Makefile.in (original)
+++ python/trunk/Mac/OSX/PythonLauncher/Makefile.in Thu May 18 11:04:15 2006
@@ -29,6 +29,7 @@
test -d "$(DESTDIR)$(PYTHONAPPSDIR)" || mkdir -p "$(DESTDIR)$(PYTHONAPPSDIR)"
-test -d "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app" && rm -r "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
cp -r "Python Launcher.app" "$(DESTDIR)$(PYTHONAPPSDIR)"
+ touch "$(DESTDIR)$(PYTHONAPPSDIR)/Python Launcher.app"
clean:
rm -f *.o "Python Launcher"
Modified: python/trunk/Mac/OSXResources/app/Resources/PythonApplet.icns
==============================================================================
Binary files. No diff available.
More information about the Python-checkins
mailing list