[Python-checkins] r85059 - in python/branches/py3k: Mac/BuildScript/scripts/postflight.patch-profile Misc/NEWS

ronald.oussoren python-checkins at python.org
Tue Sep 28 15:57:58 CEST 2010


Author: ronald.oussoren
Date: Tue Sep 28 15:57:58 2010
New Revision: 85059

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

Patch by Sylvain Mora, issue #9701.


Modified:
   python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile
   python/branches/py3k/Misc/NEWS

Modified: python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile
==============================================================================
--- python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile	(original)
+++ python/branches/py3k/Mac/BuildScript/scripts/postflight.patch-profile	Tue Sep 28 15:57:58 2010
@@ -20,7 +20,7 @@
 # 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 @@
 		PR="${HOME}/.bash_profile"
 	fi
 	;;
+zsh)
+        PR="${HOME}/.zprofile"
+        ;;
 *sh)
 	PR="${HOME}/.profile"
 	;;

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Tue Sep 28 15:57:58 2010
@@ -286,6 +286,10 @@
 - Issue #4026: Make the fcntl extension build under AIX.  Patch by Sébastien
   Sablé.
 
+- 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.
+
 
 What's New in Python 3.2 Alpha 2?
 =================================


More information about the Python-checkins mailing list