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

Martin Landa landa.martin at gmail.com
Sat Jul 26 15:42:56 EDT 2008


Micheal,

2008/7/26 Michael Barton <michael.barton at asu.edu>:
>>>>> import wxversion
>>>>> wxversion.select(str(2.8))
>>>>> import wx
>>>>> wx.__version__
>>
>> '2.8.8.1'
>
> This version check is failing with 2.8.8.0 on the Mac even if the correct
> version is installed. It may be failing with other version too.
>  wx.__version__ looks for wxpython SOURCE (*.py) files that are not
> currently being included in the wxpython binary installer for some reason.
> The object files are correct and being installed (*.pyo).
>
> Why not just use wx.version()? It gives the correct response regardless of
> whether the source files are installed or not.

I changed CheckForWx() to use wx.version() instead of wx.__version__.
Hope it helps.

http://trac.osgeo.org/grass/changeset/32313

and

http://trac.osgeo.org/grass/changeset/32314

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list