import os import sbms # get env object and clone it Import('*') # Verify CERN environment variable is set if os.getenv('CERN', 'nada')=='nada': if env.Dir('.').srcnode().abspath.startswith(env.GetLaunchDir()): print '============================================================' print 'CERN environment variable not set. Skipping build of bggen' print '============================================================' else: env = env.Clone() # Turn off warnings for bggen since Pythia has too many fflags = env['FORTRANFLAGS'].remove('-Wall') env.Replace(FORTRANFLAGS=fflags) sbms.AddCERNLIB(env) sbms.AddHDDM(env) sbms.executable(env, 'xsec_table')