def METHOD_NAME(self):
    """Custom sanity check for wxPython."""
    majver = '.'.join(self.version.split('.')[:2])
    shlib_ext = get_shared_lib_ext()
    py_bins = ['crust', 'shell', 'wxrc']
    files = []
    dirs = []
    if LooseVersion(self.version) < LooseVersion("4"):
        files.extend([os.path.join('bin', 'wxrc')])
        dirs.extend(['include', 'share'])
        py_bins.extend(['alacarte', 'alamode', 'wrap'])
    elif LooseVersion(self.version) >= LooseVersion("4.1"):
        majver = '3.1'  # this is 3.1 in ver 4.1.x
        py_bins.extend(['slices', 'slicesshell'])
    elif LooseVersion(self.version) >= LooseVersion("4.0"):
        majver = '3.0'  # for some reason this is still 3.0 in ver 4.0.x
        py_bins.extend(['slices', 'slicesshell'])
    files.extend([os.path.join('bin', 'py%s' % x) for x in py_bins])
    dirs.extend([self.pylibdir])
    if LooseVersion(self.version) < LooseVersion("4"):
        libfiles = ['lib%s-%s.%s' % (x, majver, shlib_ext) for x in ['wx_baseu', 'wx_gtk2u_core']]
        files.extend([os.path.join('lib', f) for f in libfiles])
    else:
        if not get_software_root('wxWidgets'):
            libfiles = ['lib%s-%s.%s' % (x, majver, shlib_ext) for x in ['wx_baseu', 'wx_gtk3u_core']]
            files.extend([os.path.join(self.pylibdir, 'wx', f) for f in libfiles])
    custom_paths = {
        'files': files,
        'dirs': dirs,
    }
    # test using 'import wx' (i.e. don't use 'import wxPython')
    self.options['modulename'] = 'wx'
    if LooseVersion(self.version) < LooseVersion("4"):
        # also test importing wxversion
        custom_commands = [(self.python_cmd, '-c "import wxversion"')]
    else:
        # also test importing wx.lib.wxcairo
        custom_commands = [(self.python_cmd, '-c "import wx.lib.wxcairo"')]
    return super(EB_wxPython, self).METHOD_NAME(custom_paths=custom_paths, custom_commands=custom_commands)