On Mon, Jul 15, 2013 at 9:27 AM, Reinout van Rees
<notifications@github.com>wrote:

> In bootstrap/bootstrap.py:
>
> >                  ).read(), ez)
> >      setup_args = dict(to_dir=tmpeggs, download_delay=0)
> >      ez['use_setuptools'](**setup_args)
> >
> > +if options.ignore_site_packages:
> > +    sys.path[:] = [x for x in sys.path if 'site-packages' not in x]
>
> If I print my system python's sys.path on ubuntu, I also get paths like
> /usr/local/lib/python2.7/dist-packages/setuptools-0.8-py2.7.egg and
> /usr/lib/python2.7/dist-packages/PIL.
>
> I fear it is a bit ubuntu-specific to have a site-packages/dist-packages
> split, but for ubuntu's case you also have to exclude dist-packages from x
> .
>

Site packages is a disaster because it doesn't have a consistent name.  The
best approach, still inadequate on Mac, is to run Python with -S.  Rather
than tell people to use:

  python bootstrap.py --ignore-site-packages

tell them to use:

  python -S  bootstrap.py

We could also detect is -S was used and suggest it's use (or maybe
automatically restart) if it wasn't used.

Note that early versions of buildout didn't check if setuptools was already
installed and people complained to me that I didn't use the existing one.
Honestly, I've lost patience with this issue.

Jim


-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton