Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f29b6b4

Browse files
Merged revisions 70741 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r70741 | ronald.oussoren | 2009-03-30 14:56:25 -0500 (Mon, 30 Mar 2009) | 2 lines Fixes issue 5270 ........
1 parent 8593a75 commit f29b6b4

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

Mac/Makefile.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ DESTDIR=
1414
LDFLAGS=@LDFLAGS@
1515
FRAMEWORKUNIXTOOLSPREFIX=@FRAMEWORKUNIXTOOLSPREFIX@
1616
PYTHONFRAMEWORK=@PYTHONFRAMEWORK@
17+
PYTHONFRAMEWORKIDENTIFIER=@PYTHONFRAMEWORKIDENTIFIER@
1718

1819

1920
# These are normally glimpsed from the previous set
@@ -206,6 +207,12 @@ install_Python:
206207
done; \
207208
done
208209
$(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"
210+
sed -e "s!%bundleid%!$(PYTHONFRAMEWORKIDENTIFIER)!g" \
211+
-e "s!%version%!`$(RUNSHARED) $(BUILDPYTHON) \
212+
-c 'import platform; print(platform.python_version())'`!g" \
213+
< "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in" \
214+
> "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist"
215+
rm "$(DESTDIR)$(APPINSTALLDIR)/Contents/Info.plist.in"
209216

210217
install_Python4way: install_Python
211218
lipo -extract i386 -extract ppc7400 -output "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)-32" "$(DESTDIR)$(APPINSTALLDIR)/Contents/MacOS/$(PYTHONFRAMEWORK)"

Mac/Resources/app/Info.plist.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<key>CFBundleExecutable</key>
2121
<string>Python</string>
2222
<key>CFBundleGetInfoString</key>
23-
<string>@VERSION@, (c) 2004 Python Software Foundation.</string>
23+
<string>%version%, (c) 2004-2009 Python Software Foundation.</string>
2424
<key>CFBundleHelpBookFolder</key>
2525
<array>
2626
<string>Documentation</string>
@@ -33,21 +33,21 @@
3333
<key>CFBundleIconFile</key>
3434
<string>PythonInterpreter.icns</string>
3535
<key>CFBundleIdentifier</key>
36-
<string>@[email protected]</string>
36+
<string>%bundleid%</string>
3737
<key>CFBundleInfoDictionaryVersion</key>
3838
<string>6.0</string>
3939
<key>CFBundleLongVersionString</key>
40-
<string>@VERSION@, (c) 2004-2008 Python Software Foundation.</string>
40+
<string>%version%, (c) 2004-2009 Python Software Foundation.</string>
4141
<key>CFBundleName</key>
4242
<string>Python</string>
4343
<key>CFBundlePackageType</key>
4444
<string>APPL</string>
4545
<key>CFBundleShortVersionString</key>
46-
<string>@VERSION@</string>
46+
<string>%version%</string>
4747
<key>CFBundleSignature</key>
4848
<string>PytX</string>
4949
<key>CFBundleVersion</key>
50-
<string>@VERSION@</string>
50+
<string>%version%</string>
5151
<key>CSResourcesFileMapped</key>
5252
<true/>
5353
<key>LSRequiresCarbon</key>

0 commit comments

Comments
 (0)