[Python-checkins] r70167 - in python/trunk/Mac/BuildScript: build-installer.py scripts/postflight.patch-profile

ronald.oussoren python-checkins at python.org
Wed Mar 4 22:07:20 CET 2009


Author: ronald.oussoren
Date: Wed Mar  4 22:07:19 2009
New Revision: 70167

Log:
Fix issue 5224.


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

Modified: python/trunk/Mac/BuildScript/build-installer.py
==============================================================================
--- python/trunk/Mac/BuildScript/build-installer.py	(original)
+++ python/trunk/Mac/BuildScript/build-installer.py	Wed Mar  4 22:07:19 2009
@@ -1031,8 +1031,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/trunk/Mac/BuildScript/scripts/postflight.patch-profile
==============================================================================
--- python/trunk/Mac/BuildScript/scripts/postflight.patch-profile	(original)
+++ python/trunk/Mac/BuildScript/scripts/postflight.patch-profile	Wed Mar  4 22:07:19 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.7
-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