All pastes #1480980 Raw Edit

Someone

public text v1 · immutable
#1480980 ·published 2009-07-01 17:31 UTC
rendered paste body
import osimport sysimport reimport distutils.utilfrom distutils.sysconfig import get_config_var, get_config_varsfrom distutils.command.config import configfrom glob import globfrom os.path import joinfrom stat import ST_MTIMEdef check_packages(packages, msg, include_ase, import_numpy):    """Check the python version and required extra packages    If ASE is not installed, the `packages` list is extended with the    ASE modules if they are found."""    if sys.version_info < (2, 3, 0, 'final', 0):        raise SystemExit('Python 2.3.1 or later is required!')    if import_numpy:        try:            import numpy        except ImportError:            raise SystemExit('numpy is not installed!')    else:        msg += ['* numpy is not installed.',