Skip to content

Commit bf2278f

Browse files
author
ronald.oussoren
committed
Fix for issue5224 ("Update Shell Profile.command" contains wrong Python version on OSX)
git-svn-id: http://svn.python.org/projects/python/branches/py3k@69544 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 4e2576c commit bf2278f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Mac/BuildScript/build-installer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,7 @@ def main():
10331033
buildPythonDocs()
10341034
fn = os.path.join(WORKDIR, "_root", "Applications",
10351035
"Python %s"%(getVersion(),), "Update Shell Profile.command")
1036-
patchFile("scripts/postflight.patch-profile", fn)
1037-
os.chmod(fn, 0755)
1036+
patchScript("scripts/postflight.patch-profile", fn)
10381037

10391038
folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(
10401039
getVersion(),))

Mac/BuildScript/scripts/postflight.patch-profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ echo "of python is not early enough of the PATH of your shell."
55
echo "These changes will be effective only in shell windows that you open"
66
echo "after running this script."
77

8-
PYVER=2.5
9-
PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/Current"
8+
PYVER=@PYVER@
9+
PYTHON_ROOT="/Library/Frameworks/Python.framework/Versions/@PYVER@"
1010

1111
if [ `id -ur` = 0 ]; then
1212
# Run from the installer, do some trickery to fetch the information

0 commit comments

Comments
 (0)