]> granicus.if.org Git - python/commitdiff
Merged revisions 85059 via svnmerge from
authorRonald Oussoren <ronaldoussoren@mac.com>
Tue, 28 Sep 2010 14:01:49 +0000 (14:01 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Tue, 28 Sep 2010 14:01:49 +0000 (14:01 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85059 | ronald.oussoren | 2010-09-28 15:57:58 +0200 (Tue, 28 Sep 2010) | 5 lines

  Add support for the ZSH shell to the "Update Shell Profile" script
  on MacOSX.

  Patch by Sylvain Mora, issue #9701.
........

Mac/BuildScript/scripts/postflight.patch-profile
Misc/NEWS

index d9ff3284780a41ccf76e0fe7674a5ad2b2fb0d3c..a66b8c787ac9cc4f36dce2c911135cc2df336e0a 100755 (executable)
@@ -20,7 +20,7 @@ fi
 # Make sure the directory ${PYTHON_ROOT}/bin is on the users PATH.
 BSH="`basename "${theShell}"`"
 case "${BSH}" in
-bash|ksh|sh|*csh)
+bash|ksh|sh|*csh|zsh)
        if [ `id -ur` = 0 ]; then
                P=`su - ${USER} -c 'echo A-X-4-X@@$PATH@@X-4-X-A' | grep 'A-X-4-X@@.*@@X-4-X-A' | sed -e 's/^A-X-4-X@@//g' -e 's/@@X-4-X-A$//g'`
        else
@@ -76,6 +76,9 @@ bash)
                PR="${HOME}/.bash_profile"
        fi
        ;;
+zsh)
+        PR="${HOME}/.zprofile"
+        ;;
 *sh)
        PR="${HOME}/.profile"
        ;;
index 33dc1f15a494631e81a70b17ad833d43da2d051a..083fc530d45877f1a2c3f85eb6698be494257ace 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -377,6 +377,11 @@ Build
   of the ``2to3`` tool, that is you can use ``2to3-2.7`` to select the Python
   2.7 edition of 2to3.
 
+- Issue #9701: The MacOSX installer can patch the shell profile to ensure that
+  the "bin" directory inside the framework is on the shell's search path. This
+  feature now also supports the ZSH shell.
+
+
 Tests
 -----