[GRASS-user] GRASS-7svn: Specify wxPython Version

Glynn Clements glynn at gclements.plus.com
Mon Jul 27 12:57:32 PDT 2015


Rich Shepard wrote:

>    I have two wxPython versions installed: -2.8.12.1 for one application (I
> forget which one requires this version) and -3.0.2.0 for applications I
> develop.
> 
>    In an application here the main module needs include these lines:
> 
> import wxversion
> wxversion.select('3.0.2.0')
> import wx
> 
>    Because I don't want to change source code each time I suck down the
> latest from the subversion repository I'd like to specify this in the
> configuration file. However, while I see the option for specifying where to
> find wxWidgets I have not found how to specify the wxPython version, and
> this causes a fatal error when compiling.

The wxPython version is handled by the CheckForWx() function in
gui/wxpython/core/globalvar.py. The default is taken from the
GRASS_WXVERSION environment variable if that's defined, otherwise it
allows wxversion to select the version, subject to the constraint that
the version must be at least 2.8.10.1.

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


More information about the grass-user mailing list