[Pythonmac-SIG] Upgrading to Python 2.4 and handling packages (e.g. Numeric, wxPython, etc.)

Christopher Barker Chris.Barker at noaa.gov
Thu Mar 23 18:53:16 CET 2006


Lou,

Thanks for the summary, you beat me to it. I'm a  bit surprised that you 
didn't already know this -- I thought is was made pretty darn clear that 
you needed to re-install all your add-on packages when you installed an 
upgraded Python. In fact, that's one of the reasons' not to use Apple's 
Python -- when they upgrade, it you'll need to re-install everything.

I guess we still need to work on the docs.

> Many thanks to Bob Ippolito for supplying those packages.

Bob built many (most?) of them, but some were built by others, and given 
to Bob to put on the site. I say this because:

> Reinstalling the kinds package.  I assume you already have the package 
> in your Python files directory.  You need to reinstall it after you 
> upgrade to Python 2.4.  Do this by opening the terminal, cd to the kinds 
> folder and type
> 
> sudo python setup.py install

Why don't you build a package out of this? If you install Py2app, you 
can run: bdist_mpkg and you'll get a nice package that you can give to 
Bob to put on the site.

When we get the released version of the Universal binary, I hope many 
folks, like you and I, will make packages  and contribute them. I think 
a large collection of ready to install packages for OS-X will do a lot 
to lower the barrier to entry for new Python users.

> Create the file kinds.pth with the 
> single line in it,

This is a bit odd. These days, most packages are built to not need a 
*.pth file. I think all you need to do is have a __init__.py file in the 
package directory. I'd encourage the kinds developers to update their setup.

by the way, what is kinds? the word "kinds" is so common I'm having a 
hard time finding it with Google.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list