coverage_omit = ','.join([ os.sep.join( [os.environ['WORKSPACE'], 'src', 'pyomo', 'pyomo', '*', 'tests']), 'pyomo.*.tests', os.sep.join([os.environ['WORKSPACE'], 'src', 'pyutilib.*']), 'pyutilib.*', ]) pyomo_packages = [ 'pyomo.%s' % os.path.basename(x) for x in glob.glob( os.path.join(os.environ['WORKSPACE'], 'src', 'pyomo', 'pyomo', '*')) if os.path.isdir(x) ] if config == "notests": driver.perform_install('pyomo', config='pyomo_all.ini') elif config == "default": driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini') elif config == "core": # Install print("-" * 60) print("Installing Pyomo") print("-" * 60) driver.perform_install('pyomo', config='pyomo_all.ini') print("-" * 60) print("Running 'pyomo install-extras' ...")
#coverage_omit=','.join([ # os.sep.join([os.environ['WORKSPACE'], 'src', 'pyomo', 'pyomo', '*', 'tests']), # 'pyomo.*.tests', # os.sep.join([os.environ['WORKSPACE'], 'src', 'pyutilib.*']), # 'pyutilib.*', #]) coverage_omit = None pyomo_packages = [ 'pyomo.%s' % os.path.basename(x) for x in glob.glob(os.path.join( os.environ['WORKSPACE'], 'src', 'pyomo', 'pyomo', '*' )) if os.path.isdir(x) ] if config == "notests": driver.perform_install('pyomo', config='pyomo_all.ini') elif config == "default": driver.perform_build('pyomo', coverage=True, omit=coverage_omit, config='pyomo_all.ini') elif config == "core": # Install print("-" * 60) print("Installing Pyomo") print("-" * 60) driver.perform_install('pyomo', config='pyomo_all.ini') print("-" * 60) print("Running 'pyomo install-extras' ...") print("-" * 60) if _run_cmd is subprocess.check_call: