[wxPython-users] Using distutils to install somethign into wx.lib

Christopher Barker Chris.Barker at noaa.gov
Thu Aug 17 09:15:10 PDT 2006


Kevin Ollivier wrote:
> Other than sending Robin a patch,

A patch to what? if you mean a patch to FloatCanvas, I do try to do that 
before each wxPython release, but I'm updating FloatCanvas far more 
frequently these days.

> or overriding the default distutils 
> install targets with your own handlers to do whatever you want? (Which 
> isn't really documented well, although it does work.)

I'm not sure I want to go into quite that deep hacking....

It makes me wonder how wxPython's setup.py puts things it the right 
place -- maybe I need to go look at it, and see what it does does.

> However, from how you've described the process, your floatcanvas update 
> will be overridden by future wxPython updates (at least on some ports), 

Yes.

> and will also need to be re-installed when a user upgrades to 2.7. 

Yes again, but that's OK, I expect changes anyway., and I hope that when 
2.7 comes out, it will have the latest FloatCanvas anyway. It's kind of 
like expecting to have to install new Python packages when you install a 
new Python version.

> While 
> I can see that this is the most 'seamless' way to get existing code 
> working, asking users to change the import line to get the new version 
> is probably smoother and less confusing than requiring your users to 
> continually re-install your module each time they update their wxPython.

That is a good point. I also am not considering that users may be using 
FloatCanvas for more than one project, and not want to update both ( I 
have not been god at keeping the API identical as I add  stuff). Of 
course, then I have to deal with versioning, if I really want to do this.

> Of course, this is precisely the sort of thing wxaddons was designed 
> for... :-)

Yes, what's the story with that? is it ready to use? I'd like to get 
FloatCanvas into a public SVN (or CVS) anyway.

In truth, I think most people probably just use the floatcanvas package 
locally, rather than installing it, anyway. I mostly want to install it 
as I want to test it with the Demo, etc.

-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 wxpython-users mailing list