From: Ronald Oussoren Date: Mon, 30 Mar 2009 19:56:25 +0000 (+0000) Subject: Fixes issue 5270 X-Git-Tag: v2.7a1~1737 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354bb5ca671dafffd35e5177e4c8225bb8d4f48a;p=python Fixes issue 5270 --- diff --git a/Mac/Makefile.in b/Mac/Makefile.in index 2a485c61ac..3981a96f00 100644 --- a/Mac/Makefile.in +++ b/Mac/Makefile.in @@ -14,6 +14,7 @@ DESTDIR= LDFLAGS=@LDFLAGS@ FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@ PYTHONFRAMEWORK=@PYTHONFRAMEWORK@ +PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@ # These are normally glimpsed from the previous set @@ -206,6 +207,12 @@ install_Python: done; \ done $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" + sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \ + -e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \ + -c 'import platform; print(platform.python_version())'`!g" \ + < "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \ + > "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist" + rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" install_Python4way: install_Python lipo -extract i386 -extract ppc7400 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)" diff --git a/Mac/Resources/app/Info.plist.in b/Mac/Resources/app/Info.plist.in index 123371526b..bd4a54c290 100644 --- a/Mac/Resources/app/Info.plist.in +++ b/Mac/Resources/app/Info.plist.in @@ -20,7 +20,7 @@ CFBundleExecutable Python CFBundleGetInfoString - @VERSION@, (c) 2004 Python Software Foundation. + %version%, (c) 2004-2009 Python Software Foundation. CFBundleHelpBookFolder Documentation @@ -33,21 +33,21 @@ CFBundleIconFile PythonInterpreter.icns CFBundleIdentifier - @PYTHONFRAMEWORKIDENTIFIER@.app + %bundleid% CFBundleInfoDictionaryVersion 6.0 CFBundleLongVersionString - @VERSION@, (c) 2004-2008 Python Software Foundation. + %version%, (c) 2004-2009 Python Software Foundation. CFBundleName Python CFBundlePackageType APPL CFBundleShortVersionString - @VERSION@ + %version% CFBundleSignature PytX CFBundleVersion - @VERSION@ + %version% CSResourcesFileMapped LSRequiresCarbon