On Mon, 28 Jan 2008, Jim Correia wrote:

It looks as though you might have installed Python 2.5 yourself on 10.4. 10.5 comes with Python 2.5 installed (and doesn't have anything Python related in /Library/... by default.)

Yes of course! That's exactly what happened and that explains it. So now I'm in the embarrassing position of having two parallel installations of Python 2.5, one that's in Leopard by default, and the one I installed in 10.4 myself which got migrated to the new machine.

Check your shell configuration. There are probably modifications there so that when in the shell environment, Python 2.5 installed in the /Library location is used.

this in .tcshrc is what you mean?
set path = ( /usr/local/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:$path )

BBEdit is not run as a subprocess of the shell, so it doesn't inherit the shell environment. If you need to make modifications to the environment for GUI processes, you can do so like this:

        <http://developer.apple.com/qa/qa2001/qa1067.html>

Ah, thanks very much for the explanation. It seems to me that the best thing to do is to move my site-packages directory into the /System/Library/Frameworks branch and then delete the Python installation in the /Library/Frameworks branch. I'm in the outer reaches of stuff I understand in the system, so I'm a bit hesitant:

What modifications should I then make to $PATH? Is it enough simply to remove the contents of /Library/Frameworks/Python.framework/ ? When I install packages in future, will setup.py know where to install things?

The two installations differ in the following respect:

[ElCid:~] jjc% ls -al /System/Library/Frameworks/Python.framework
total 24
drwxr-xr-x   6 root  wheel   204 Oct 25 22:43 .
drwxr-xr-x  84 root  wheel  2856 Oct 25 22:45 ..
lrwxr-xr-x 1 root wheel 26 Oct 25 22:43 CodeResources -> Versions/2.5/CodeResources lrwxr-xr-x 1 root wheel 23 Oct 25 22:43 Python -> Versions/Current/Python lrwxr-xr-x 1 root wheel 26 Oct 25 22:43 Resources -> Versions/Current/Resources
drwxr-xr-x   5 root  wheel   170 Oct 25 22:43 Versions

[ElCid:~] jjc% ls -al /Library/Frameworks/Python.framework/
total 40
drwxrwxr-x   7 root  admin   238 Jan 19  2007 .
drwxrwxr-x  19 root  admin   646 Jan 15 11:27 ..
-rw-rw-r--@  1 jjc   admin  6148 Jan 28 18:36 .DS_Store
lrwxr-xr-x 1 root admin 24 Jan 9 15:09 Headers -> Versions/Current/Headers lrwxr-xr-x 1 root admin 23 Jan 9 15:09 Python -> Versions/Current/Python lrwxr-xr-x 1 root admin 26 Jan 9 15:09 Resources -> Versions/Current/Resources
drwxrwxr-x   7 root  admin   238 Jan 22  2007 Versions

the Headers directory turns out to be full of xxx.h files, do I need these? CodeResources turns out to be a .plist, I presume I need that? I know these questions betray profound ignorance but I'd be grateful if you bear with me. I feel I must harmonize these two separate python installations or else it will come around to bite me in the future I'm sure.

Any help?

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to