eggs or pythonmac packages on OS X?

In article
<e5928fe10712041042i52b03010lcf4084675cdd3660@...288...>,
"Stephen Uhlhorn"

I'm running MacPython 2.5 on Mac OS 10.5.1 and would like to update
matplotlib to 0.91.1. Im using mpl 0.90.1 from the pythonmac site now.
Is it better for me to wait till a pythonmac package is availabel or
are the eggs on SF good to use. I would favor the SF eggs because of
ease of upgrading unless there are some OS X conflicts I'm unaware of.

If you use Tcl/Tk and use a current version (instead of the ancient
version that is built in) then use the packages at pythonmac. I just
built 0.91.1 today and it should show up there soon. Meanwhile you can
get it from here:
<http://www.astro.washington.edu/rowen/pythoninstallers/>

I hope that someday the official Mac egg version will work with 3rd
party Tcl/Tk but no version I've tried has -- including 0.91.1.

If I use the eggs, what's the best way to safely uninstall the
pythonmac package? Just delete the relevant site-packages durectory?

That's what I do, but I'm not sure it's the best way. I delete all
folders whose names start with "matplotlib" (usually a folder named
"matplotlib" and another named matplotlib-xxx-py2.5.egg-info)

-- Russell

···

<stephenlists@...287...> wrote:

Does this mean that the only difference between the egg and pythonmac
version is how it's linked against Tcl/Tk?

Just for my edification, why can't the egg version be linked
against/include a different Tcl/Tk?

Thanks-
-stephen

···

On Dec 4, 2007 5:14 PM, Russell E. Owen <rowen@...529...> wrote:

If you use Tcl/Tk and use a current version (instead of the ancient
version that is built in) then use the packages at pythonmac. I just
built 0.91.1 today and it should show up there soon. Meanwhile you can
get it from here:
<http://www.astro.washington.edu/rowen/pythoninstallers/>

I hope that someday the official Mac egg version will work with 3rd
party Tcl/Tk but no version I've tried has -- including 0.91.1.

If you use Tcl/Tk and use a current version (instead of the ancient
version that is built in) then use the packages at pythonmac. I just
built 0.91.1 today and it should show up there soon. Meanwhile you can
get it from here:
<http://www.astro.washington.edu/rowen/pythoninstallers/>

I hope that someday the official Mac egg version will work with 3rd
party Tcl/Tk but no version I've tried has -- including 0.91.1.

Does this mean that the only difference between the egg and pythonmac
version is how it's linked against Tcl/Tk?

I suspect you are right. But I only build the pythonmac version, not the official version, so I don't know for sure. I build my version using:
<http://www.astro.washington.edu/rowen/BuildingMatplotlibForMac.html>. I don't do anything special, but I do have a 3rd party Tcl/Tk installed before I build and that seems to make all the difference.

Just for my edification, why can't the egg version be linked
against/include a different Tcl/Tk?

If you mean why can't it be built that way in the first place, I don't know. The guy who builds it apparently doesn't read this list, and I understand he's on some mailing list that I don't subscribe to.

I suspect the official egg can somehow be patched, but I find it easier to just build my own and put that on pythonmac.

-- Russell

···

At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:

On Dec 4, 2007 5:14 PM, Russell E. Owen <rowen@...529...> wrote:

Russell E Owen wrote:

Just for my edification, why can't the egg version be linked
against/include a different Tcl/Tk?

If you mean why can't it be built that way in the first place, I don't know. The guy who builds it apparently doesn't read this list,

Sure he does (if you mean the matplotlib list), and he did ask about it right before this release. Maybe that was asked on matplotlib-devel though (I filter them to the same place).

I suspect the official egg can somehow be patched, but I find it easier to just build my own and put that on pythonmac.

Ideally, there would be only one binary version, and it would work with either Tcl/Tk. Is that possible? or is this like the old wx situation, where it can only be run with the same version it is built against. Arrggg! I hope not.

If there really do need to be two, then they should be labeled somehow, and both be up on python mac.

-Chris

···

At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...236...

Russell E Owen wrote:

Just for my edification, why can't the egg version be linked
against/include a different Tcl/Tk?

If you mean why can't it be built that way in the first place, I don't know. The guy who builds it apparently doesn't read this list,

Sure he does (if you mean the matplotlib list), and he did ask about it right before this release. Maybe that was asked on matplotlib-devel though (I filter them to the same place).

I suspect the official egg can somehow be patched, but I find it easier to just build my own and put that on pythonmac.

Ideally, there would be only one binary version, and it would work with either Tcl/Tk. Is that possible? or is this like the old wx situation, where it can only be run with the same version it is built against. Arrggg! I hope not.

If there really do need to be two, then they should be labeled somehow, and both be up on python mac.

-Chris

···

At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote:

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Russell E Owen wrote:

Just for my edification, why can't the egg version be linked
against/include a different Tcl/Tk?

If you mean why can't it be built that way in the first place, I don't know. The guy who builds it apparently doesn't read this list,

Sure he does (if you mean the matplotlib list), and he did ask about it right before this release. Maybe that was asked on matplotlib-devel though (I filter them to the same place).

It was on matploblib-devel. I'll start skimming that newsgroup.

I suspect the official egg can somehow be patched, but I find it easier to just build my own and put that on pythonmac.

Ideally, there would be only one binary version, and it would work with either Tcl/Tk. Is that possible? or is this like the old wx situation, where it can only be run with the same version it is built against. Arrggg! I hope not.

The version I build *can* be used with the built in Tcl/Tk. The version Charlie Moad builds cannot be used with TkAgg and a 3rd party Tcl/Tk -- it not only won't use the library, but it also acts flaky. Older versions crashed. 0.91.1 doesn't crash, but import of pylab fails with a traceback.

For some reason it seems to be necessary to have a 3rd party Tcl/Tk installed when building matplotlib. It seems a shame. Tkinter in Python 2.4 was the same way, but that got fixed in Python 2.5 (I don't whether the installer got fixed or whether whoever builds Mac Python 2.5 installed a 3rd party Tcl/Tk).

If there really do need to be two, then they should be labeled somehow, and both be up on python mac.

Since there don't need to be two versions this is not necessary.

However, Charlie Moad appears to be willing to start building a version that works with 3rd party Tcl/Tk. I really hope that happens.

-- Russell

···

At 10:03 AM -0800 2007-12-05, Christopher Barker wrote:

At 10:08 AM -0500 2007-12-05, Stephen Uhlhorn wrote: