[Pythonmac-SIG] sys.path on Leopard

Brian Granger ellisonbg.net at gmail.com
Fri Nov 2 21:42:11 CET 2007


I guess then that the main different is that the 2.5.1 off python.org
doesn't include older versions of things like numpy, twisted, etc.
that people would want to upgrdate.

Brian

On 11/2/07, Martina Oefelein <Martina at oefelein.de> wrote:
>
> Am 01.11.2007 um 21:14 schrieb Jack Jansen:
>
> >
> > On 1-Nov-2007, at 20:45 , Brian Granger wrote:
> >> Running python setup.py install on Leopard causes packages to be
> >> installed in the usual:
> >>
> >> /Library/Python/2.5/site-packages
> >>
> >> But, Apple put this directory _after_
> >>
> >> /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/
> >> python
> >>
> >> in sys.path.  This, even if a user installs a newer version of one of
> >> these packages, the builtin  python will always use Apple's older
> >> version.
> >
> >
> > Bah. The order is very strange:
> > - First most of the Python-supplied and Apple-supplied directories,
> > - Then /Library/Python/2.5/site-packages
> > - Then PyObjC, which is also Apple-supplied
> > - Then $HOME/Library/Python/2.5/site-packages, if it exists.
> >
> > By all means, report a bug.
> >
>
> I think that site-packages comes after the system library is just
> normal python behaviour IMHO. At least, it's the same in the
> "official" Python 2.5.1 build from python.org, and it's also in the
> example path here:
> http://docs.python.org/inst/search-
> path.html#SECTION000410000000000000000
>
>
> ciao
> Martina
>
>


More information about the Pythonmac-SIG mailing list