On Feb 1, 9:25 pm, Eric Abrahamsen <[EMAIL PROTECTED]> wrote:
> On Feb 1, 5:47 pm, omat <[EMAIL PROTECTED]> wrote:
>
> > I am using the built-in Python that ships with Leopard. Unfortunately
> > I don't know what created the extra site-packages under /System/
> > Library/.../lib/python2.5/
>
> I don't think that's quite right - the /System/Library/etc/etc version
> seems to be the real Python install (I've got it, and I did a clean
> install of Leopard), but it gives you a /Library/Python/2.5/site-
> packages/ directory as a convenience. There aren't any other Python
> files in that directory - it's not actually a Python install. If you
> check your default python sys.path, you'll see that both locations are
> present.
>
> It's caused a little bit of difficulty - running CherryPy setup
> install, for instance, put all its *.py files in the /Library/Python
> site-packages, and everything else in the Frameworks folder. Very odd.
> But otherwise just using /Library/Python/2.5/site-packages should work
> fine.

I have checked three Leopard boxes I have access to, all done by fresh
installs. None of then have a site-packages for Python 2.5 that is
shipped with OS under the /System/Library/Frameworks/Python.framework
directory.

$ cd /System/Library/Frameworks/Python.framework/Versions/Current/lib/
python2.5
$ ls -las site*
32 -rw-r--r--  1 root  wheel  16283 10 Oct 13:42 site.pyc
32 -rw-r--r--  1 root  wheel  16283 10 Oct 13:42 site.pyo

The only site-packages that sys.path references is that under /Library/
Python/2.5.

$ python
Python 2.5.1 (r251:54863, Oct  9 2007, 20:39:46)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> 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']

Except for one system, no additional Python packages have been
installed. Even the one where only virtualenv was installed still
didn't have the extra site-packages directory.

So, something must be going on for you.

Do any of the .pth files in /Library/Python/2.5/site-packages have a
reference to the other site-packages directory, indicating perhaps
that some third party package is what has created the extra site-
packages directory and added a reference to it so it gets added to
sys.path.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to