]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix issue 5224.
authorRonald Oussoren <ronaldoussoren@mac.com>
Wed, 4 Mar 2009 21:07:19 +0000 (21:07 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Wed, 4 Mar 2009 21:07:19 +0000 (21:07 +0000)
Mac/BuildScript/build-installer.py
Mac/BuildScript/scripts/postflight.patch-profile

index 2408960d9499a91e2d1101c3185e03d2534a2689..559b5de1560805d34dd30e4acb50f114406a948d 100755 (executable)
@@ -1031,8 +1031,7 @@ def main():
     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(),))
index d03e4d04f084157c49c0c05a42d582da1e0aa73c..aa5e93c683020e9199378cdb36700b3438476d48 100755 (executable)
@@ -5,8 +5,8 @@ echo "of python is not early enough of the PATH of your shell."
 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