Kevin,

If you do a "typical" compile of your own Python from source I would install it 
in /usr/local/ bin and lib.  If you download an OSX pre-built Python 2.7.1  (or 
3.2) I would let it install itself in /Library/Frameworks/Python.framework/...  
(See http://python.org/download/releases/2.7.1/)

Then, be really, really sure all 3rd party packages are installed in the 
appropriate site-packages dir.  Each version of Python will likely have its own 
site-packages and a package installed with one version of Python will most 
likely *not* be in the correct site-packages dir for your most recent Python.  
Do not assume you can simply copy a package from one site-packages dir to 
another as some packages are built for specific versions of Python. 

And finally, be sure your links, aliases and paths will find the intended 
version.  

As to which root dir location is best, it doesn't really matter as long as your 
links, aliases, and paths can find it.  Personally, I have multiple (8) 
versions installed and use aliases and links to keep things copesthetic.  And 
to avoid issues when installing packages, I use the longer, fully qualified 
pathnames.

I also like reserving /usr/... and 
/System/Library/Frameworks/Python.framework/Versions/... for the exclusive use 
by Apple.  I do not mess with what I find there.  It was "factory installed" 
and I let only "the factory" modify them.  I just make sure my versions are 
higher on the search list.  (Years ago I had BAD EXPERIENCE [on RH 4.x IIRC] 
when I updated the version of Python I found in /usr/...  It seemed safe 
enough.  Let's just say the consequence was *very* painful.)

So, armed with this I would first check your links, aliases, and paths.  Be 
sure /usr/local/bin is early in your $PATH.  I would carefully inspect for the 
*correct* packages in the appropriate site-packages dir, re-installing as 
appropriate.  Please know that ElementTree was added to the Python Standard 
Library as of version 2.5 so you may not want to install another in 
site-packages.  (You may need to tweak your import statements however.)

I hope this helps,

Larry




On May 31, 2011, at 4:48 PM, Kevin LaTona wrote:

> 
> Hi Larry + Chris.
> 
> Any thoughts on a PPC based Mac running 10.5.8 where is best place to put Py 
> 2.7.x?
> 
> Apple sticks files under /usr/bin
> 
> Python sticks files under /usr/local/bin
> 
> Most times things has worked so far.
> 
> Right now ElementTree is not liking my setup and is blowing up minidom.
> 
> Not sure how or why.
> 
> 
> My thought is to wipe all the old PY 2.3, 2.5 and 2.7 files .
> 
> And only have the one version of Python 2.7 as this is all I need on this 
> machine.
> 
> 
> Where do you think is the best place to put it?
> 
> Or does it not really matter?
> 
> I have noticed some developers set code up to look for the stock apple 
> location.
> 
> 
> Any thoughts?
> 
> Thanks
> 
> -Kevin
> 
> 
> 
> On May 31, 2011, at 4:22 PM, Larry Bugbee wrote:
> 
>> Hi kevin,
>> 
>> There are several ways, so...   What is the question?  ...and circumstances?
>> 
>> Larry
>> 
>> 
>> -------------------------------------------------
>> On May 31, 2011, at 4:15 PM, Kevin LaTona wrote:
>> 
>> Hi All,
>> 
>> Is there any one on the list that is really up on installing new versions of 
>> Python on to the Mac?
>> 
>> And has time to answer a quick question on how best to do this?
>> 
>> 
>> Thanks
>> 
>> -Kevin
>> 
>> 
> 

Reply via email to