Skip navigation.
 
mlRe: site packages and /System/Library
FROM : David Worrall
DATE : Wed Nov 14 22:16:17 2007

Unsurprising? perhaps if you're telepathic:

>>> import sys
>>> print sys.path

['',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python23.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/lib-dynload',
'/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.3/Extras/lib/
python']

which doesn't include a
'/Library/Python/2.3/site-packages'

Following Paul's lead, however
  /Library/Python/2.3/site-packages
has a lovely little README
and is in the path
So why doesn't /Library/Python/2.3/site-packages show up in sys.path?

Fairly surprising, really.


On 15/11/2007, at 2:56 AM, Paul Sargent wrote:

>
> On 14 Nov 2007, at 13:16, David Worrall wrote:

>>
>> What is the correct location for 3rd party site-packages to be 
>> used with the system python?

>
> >>> import sys
> >>> print sys.path
> ['',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python25.zip',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/plat-darwin',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/plat-mac',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/plat-mac/lib-scriptpackages',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/
> lib/python',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/lib-tk',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/lib-dynload',
> '/Library/Python/2.5/site-packages',
> '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/
> lib/python/PyObjC']
>
> Looks like /Library/Python/2.5/site-packages
>
> Fairly unsurprising really.
>


_________________________________________________
experimental polymedia:    www.avatar.com.au
Sonic Communications Research Group,
University of Canberra:     creative.canberra.edu.au/scrg/

Related mailsAuthorDate
mlsite packages and /System/Library David Worrall Nov 14, 14:16
mlRe: site packages and /System/Library Christiaan Hofman Nov 14, 14:52
mlRe: site packages and /System/Library Paul Sargent Nov 14, 16:56
mlRe: site packages and /System/Library David Worrall Nov 14, 22:16
mlRe: site packages and /System/Library Paul Sargent Nov 15, 16:11
mlRe: site packages and /System/Library David Worrall Nov 15, 16:22