Sat Nov 15 11:59:32 MST 2008 zooko@zooko.com * leave the PYTHONPATH dirs at the front of the sys.path This is in accordance with http://www.python.org/doc/2.5.2/inst/search-path.html , which says "The PYTHONPATH variable can be set to a list of paths that will be added to the beginning of sys.path.", and it resolves an objection many people have which impels them to ban setuptools from systems they administrate. diff -rN -u old-dw-0.6c9+zookopatches/setuptools/command/easy_install.py new-dw-0.6c9+zookopatches/setuptools/command/easy_install.py --- old-dw-0.6c9+zookopatches/setuptools/command/easy_install.py 2008-11-15 12:40:13.000000000 -0700 +++ new-dw-0.6c9+zookopatches/setuptools/command/easy_install.py 2008-11-15 12:40:14.000000000 -0700 @@ -1364,7 +1364,7 @@ "%s\n" "import sys; new=sys.path[sys.__plen:];" " del sys.path[sys.__plen:];" - " p=getattr(sys,'__egginsert',0); sys.path[p:p]=new;" + " p=getattr(sys,'__egginsert',len(os.environ.get('PYTHONPATH','').split(os.pathsep))); sys.path[p:p]=new;" " sys.__egginsert = p+len(new)\n" ) % data