Project: datamanagement
Issue DM-522: gracefully handle misconfigured scons
When I try to run scons using the latest master (89aaa6), it fails with {code} scons: Reading SConscript files ... AttributeError: 'NoneType' object has no attribute 'rfind': File "/home/becla/cssProto/qserv_css6/SConstruct", line 17: state.init(src_dir) File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 161: _initEnvironment(src_dir) File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 128: _initVariables(src_dir) File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 89: (PathVariable('XROOTD_DIR', 'xrootd install dir', _findPrefix("XROOTD", "xrootd"), PathVariable.PathIsDir)), File "/home/becla/cssProto/qserv_css6/site_scons/state.py", line 53: (binpath, binname) = os.path.split(binFullPath) File "/usr/lib/python2.7/posixpath.py", line 83: i = p.rfind('/') + 1 {code} The scripts should check that requires variables are not set, and print appropriate error (and ideally, suggest how to fix it)
Story points: 1