def print_sysinfo(): """Print information about relevant dependencies""" #get version information for line in open('glue/version.py'): if (line.startswith('__version__')): exec(line.strip()) #Print external package information print_line() print_raw("BUILDING GLUE") print_status('glue', __version__) print_status('python', sys.version) print_status('platform', sys.platform) if sys.platform == 'win32': print_status('Windows version', sys.getwindowsversion()) print_raw("") print_raw("REQUIRED DEPENDENCIES") if not check_for_numpy('1.4'): sys.exit(1) print_raw("") print_raw("RECOMMENDED DEPENDENCIES") check_for_matplotlib() check_for_qt4() check_for_scipy() print_raw("") print_raw("OPTIONAL DEPENDENCIES : GENERAL") check_for_ipython() check_for_pil() print_raw("") print_raw("OPTIONAL DEPENDENCIES : ASTRONOMY") check_for_astropy() check_for_atpy() check_for_aplpy() print_raw("") print_raw("OPTIONAL DEPENDENCIES : TESTING") check_for_pytest() check_for_mock() print_line()
def print_sysinfo(): """Print information about relevant dependencies""" #get version information for line in open('glue/version.py'): if (line.startswith('__version__')): exec(line.strip()) #Print external package information print_line() print_raw("BUILDING GLUE") print_status('glue', __version__) print_status('python', sys.version) print_status('platform', sys.platform) if sys.platform == 'win32': print_status('Windows version', sys.getwindowsversion()) print_raw("") print_raw("REQUIRED DEPENDENCIES") if not check_for_numpy('1.4'): sys.exit(1) check_for_matplotlib() check_for_qt4() check_for_pyside() print_raw("") print_raw("RECOMMENDED DEPENDENCIES") check_for_scipy() print_raw("") print_raw("OPTIONAL DEPENDENCIES : GENERAL") check_for_ipython() check_for_pil() print_raw("") print_raw("OPTIONAL DEPENDENCIES : ASTRONOMY") check_for_astropy() check_for_aplpy() print_raw("") print_raw("OPTIONAL DEPENDENCIES : TESTING") check_for_pytest() check_for_mock() print_line()
'matplotlib.numerix.ma', 'matplotlib.numerix.linear_algebra', 'matplotlib.numerix.random_array', 'matplotlib.numerix.fft', ] package_dir = {'': 'lib'} py_modules = ['pylab'] ext_modules = [] for line in file('lib/matplotlib/__init__.py').readlines(): if (line.startswith('__version__')): exec(line.strip()) print_line() print_raw("BUILDING MATPLOTLIB") print_status('matplotlib', __version__) print_status('python', sys.version) print_status('platform', sys.platform) if sys.platform == 'win32': print_status('Windows version', sys.getwindowsversion()) print_raw("") print_raw("REQUIRED DEPENDENCIES") # Specify all the required mpl data package_data = { 'matplotlib': [ 'mpl-data/fonts/afm/*.afm', 'mpl-data/fonts/pdfcorefonts/*.afm', 'mpl-data/fonts/pdfcorefonts/*.txt',
# These are distutils.setup parameters that the various packages add # things to. packages = [] namespace_packages = [] py_modules = [] ext_modules = [] package_data = {} package_dir = {'': 'lib'} install_requires = [] setup_requires = [] tests_require = [] default_backend = None # Go through all of the packages and figure out which ones we are # going to build/install. print_line() print_raw("Edit setup.cfg to change the build options") required_failed = [] good_packages = [] for package in mpl_packages: if isinstance(package, str): print_raw('') print_raw(package.upper()) else: try: result = package.check() if result is not None: message = 'yes [%s]' % result print_status(package.name, message) except setupext.CheckFailed as e: