summaryrefslogtreecommitdiffstats
path: root/Mac/BuildScript
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:07:19 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:07:19 (GMT)
commit799868e8a7051c0ea22eaee1cfb0a7005de3b897 (patch)
treeb581061bbda38bfb80d97c584641187512cf69cb /Mac/BuildScript
parentd5ad6da03be91167405998d4c5555df6dd7f5299 (diff)
downloadcpython-799868e8a7051c0ea22eaee1cfb0a7005de3b897.zip
cpython-799868e8a7051c0ea22eaee1cfb0a7005de3b897.tar.gz
cpython-799868e8a7051c0ea22eaee1cfb0a7005de3b897.tar.bz2
Fix issue 5224.
Diffstat (limited to 'Mac/BuildScript')
-rwxr-xr-xMac/BuildScript/build-installer.py3
-rwxr-xr-xMac/BuildScript/scripts/postflight.patch-profile4
2 files changed, 3 insertions, 4 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index 2408960..559b5de 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -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(),))
diff --git a/Mac/BuildScript/scripts/postflight.patch-profile b/Mac/BuildScript/scripts/postflight.patch-profile
index d03e4d0..aa5e93c 100755
--- a/Mac/BuildScript/scripts/postflight.patch-profile
+++ b/Mac/BuildScript/scripts/postflight.patch-profile
@@ -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