[GRASS-dev] Re: requiring 2.8.1.1???

Glynn Clements glynn at gclements.plus.com
Sun Jul 27 09:02:18 EDT 2008


Michael Barton wrote:

> > OTOH, if you "import wx" without using wxversion.select(), then check
> > wx.version(), the desired version not only needs to be installed, it
> > also needs to be the default version (i.e. installed as "wx").
> >
> > So, if you have e.g. both 2.6 and 2.8, and "wx" is 2.6, the code will
> > fail without the use of wxversion.select().
> 
> Maybe I misunderstand, but this is what we want. We need to know that  
> the default version of wx is at or above 2.8.1. So it doesn't matter  
> if you have 2.6 and 2.8.1, if 2.6 is your default,
> 
> import wx
> wx.version()
> 
> should say that 2.6 is running, which is the wrong version. This  
> should generate an error out of CheckForWx().

Why would we want to use 2.6 and fail if you actually have 2.8?

AFAICT, if you have 2.8, we should use 2.8. It shouldn't matter what
the default is, or if you even have a default (a default should only
be required for code which pre-dates the addition of the wxverion
module).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list