Changeset 1428
- Timestamp:
- 11/14/08 14:33:46 (15 years ago)
- Files:
-
- branches/libffado-2.0/SConstruct (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/libffado-2.0/SConstruct
r1421 r1428 151 151 context.Message( "Checking for the python module '" + module + "' " ) 152 152 ret = True 153 try: 154 imp.find_module( module ) 155 except ImportError: 156 ret = False 153 path = None 154 while module.count(".") > 0 and ret: 155 thismod = module.split(".")[0] 156 try: 157 modinfo = imp.find_module( thismod, path ) 158 except ImportError: 159 ret = False 160 else: 161 newmod = imp.load_module( thismod, modinfo[0], modinfo[1], modinfo[2] ) 162 path = newmod.__path__ 163 module = ".".join( module.split(".")[1:] ) 164 if ret: 165 try: 166 imp.find_module( module ) 167 except ImportError: 168 ret = False 157 169 context.Result( ret ) 158 170 return ret … … 276 288 # PyQT checks 277 289 build_mixer = False 278 if conf.CheckForApp( "which pyuic4" ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ):290 if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): 279 291 env['PYUIC4'] = True 280 292 build_mixer = True 281 293 282 if conf.CheckForApp( "which pyuic") and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'qt' ):294 if conf.CheckForApp( 'which pyuic' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'qt' ): 283 295 env['PYUIC'] = True 284 296 build_mixer = True 285 297 286 if conf.CheckForApp( "xdg-desktop-menu --help"):298 if conf.CheckForApp( 'xdg-desktop-menu --help' ): 287 299 env['XDG_TOOLS'] = True 288 300 else: