[Python-checkins] r69544 - in python/branches/py3k/Mac/BuildScript: build-installer.py scripts/postflight.patch-profile

ronald.oussoren python-checkins at python.org
Thu Feb 12 17:08:14 CET 2009


Author: ronald.oussoren
Date: Thu Feb 12 17:08:14 2009
New Revision: 69544

Log:
Fix for issue5224 ("Update Shell Profile.command" contains wrong Python version on OSX)


Modified:
   python/branches/py3k/Mac/BuildScript/build-installer.py
   python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile

Modified: python/branches/py3k/Mac/BuildScript/build-installer.py
==============================================================================
--- python/branches/py3k/Mac/BuildScript/build-installer.py	(original)
+++ python/branches/py3k/Mac/BuildScript/build-installer.py	Thu Feb 12 17:08:14 2009
@@ -1033,8 +1033,7 @@
     buildPythonDocs()
     fn = os.path.join(WORKDIR, "_root", "Applications",
                 "Python %s"%(getVersion(),), "Update Shell Profile.command")
-    patchFile("scripts/postflight.patch-profile",  fn)
-    os.chmod(fn, 0755)
+    patchScript("scripts/postflight.patch-profile",  fn)
 
     folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(
         getVersion(),))

Modified: python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile
==============================================================================
--- python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile	(original)
+++ python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile	Thu Feb 12 17:08:14 2009
@@ -5,8 +5,8 @@
 echo "These changes will be effective only in shell windows that you open"
 echo "after running this script."
 
-PYVER=2.5
-PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/Current"
+PYVER=@PYVER@
+PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/@PYVER@"
 
 if [ `id -ur` = 0 ]; then
 	# Run from the installer, do some trickery to fetch the information


More information about the Python-checkins mailing list