コード例 #1
0
ファイル: setup.py プロジェクト: eteq/glue
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()
コード例 #2
0
ファイル: setup.py プロジェクト: hihihippp/glue
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()
コード例 #3
0
    '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',
        'mpl-data/fonts/ttf/*.ttf',
        'mpl-data/images/*.xpm',
コード例 #4
0
ファイル: setup.py プロジェクト: xinzhou1006/matplotlib
        # 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:
                    msg = str(e).strip()
                    if len(msg):
                        print_status(package.name, 'no  [%s]' % msg)
                    else:
                        print_status(package.name, 'no')
                    if not package.optional:
                        required_failed.append(package)
                else:
                    good_packages.append(package)
        print_raw('')

        # Abort if any of the required packages can not be built.
        if required_failed:
            print_line()
コード例 #5
0
                for opt in [*Distribution.display_option_names, 'help'])
            or 'clean' in sys.argv):
        # Go through all of the packages and figure out which ones we are
        # going to build/install.
        print_raw()
        print_raw("Edit setup.cfg to change the build options; "
                  "suppress output with --quiet.")
        print_raw()
        print_raw("BUILDING MATPLOTLIB")

        good_packages = []
        for package in mpl_packages:
            try:
                result = package.check()
                if result is not None:
                    print_status(package.name, 'yes [%s]' % result)
            except setupext.CheckFailed as e:
                print_status(package.name, 'no  [%s]' % str(e))
                if not package.optional:
                    sys.exit("Failed to build %s" % package.name)
            else:
                good_packages.append(package)

        print_raw()

        # Now collect all of the information we need to build all of the
        # packages.
        for package in good_packages:
            # Extension modules only get added in build_ext, as numpy will have
            # been installed (as setup_requires) at that point.
            data = package.get_package_data()
コード例 #6
0
ファイル: setup.py プロジェクト: dorozco21/matplotlib-1
            for opt in Distribution.display_option_names + ['help'])
        or 'clean' in sys.argv):
    # Go through all of the packages and figure out which ones we are
    # going to build/install.
    print_raw()
    print_raw("Edit setup.cfg to change the build options; "
              "suppress output with --quiet.")
    print_raw()
    print_raw("BUILDING MATPLOTLIB")

    good_packages = []
    for package in mpl_packages:
        try:
            message = package.check()
        except setupext.Skipped as e:
            print_status(package.name, "no  [{e}]".format(e=e))
            continue
        if message is not None:
            print_status(package.name,
                         "yes [{message}]".format(message=message))
        good_packages.append(package)

    print_raw()

    # Now collect all of the information we need to build all of the packages.
    for package in good_packages:
        # Extension modules only get added in build_ext, as numpy will have
        # been installed (as setup_requires) at that point.
        data = package.get_package_data()
        for key, val in data.items():
            package_data.setdefault(key, [])
コード例 #7
0
ファイル: setup.py プロジェクト: Acanthostega/matplotlib
    # 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:
                msg = str(e).strip()
                if len(msg):
                    print_status(package.name, 'no  [%s]' % msg)
                else:
                    print_status(package.name, 'no')
                if not package.optional:
                    required_failed.append(package)
            else:
                good_packages.append(package)
                if isinstance(package, setupext.OptionalBackendPackage):
                    if default_backend is None:
                        default_backend = package.name
    print_raw('')
コード例 #8
0
ファイル: setup.py プロジェクト: idealisms/matplotlib
    'matplotlib.sphinxext',
    'matplotlib.tri',

    ]

py_modules = ['pylab']

ext_modules = []

for line in open('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',
                              'mpl-data/fonts/ttf/*.ttf',
                              'mpl-data/fonts/ttf/LICENSE_STIX',
                              'mpl-data/fonts/ttf/COPYRIGHT.TXT',
                              'mpl-data/fonts/ttf/README.TXT',
コード例 #9
0
ファイル: setup.py プロジェクト: Wintermute3/matplotlib
    # 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:
                msg = str(e).strip()
                if len(msg):
                    print_status(package.name, "no  [%s]" % msg)
                else:
                    print_status(package.name, "no")
                if not package.optional:
                    required_failed.append(package)
            else:
                good_packages.append(package)
                if isinstance(package, setupext.OptionalBackendPackage):
                    if default_backend is None:
                        default_backend = package.name
    print_raw("")
コード例 #10
0
    "matplotlib.sphinxext",
    "matplotlib.numerix",
    "matplotlib.numerix.mlab",
    "matplotlib.numerix.ma",
    "matplotlib.numerix.linear_algebra",
    "matplotlib.numerix.random_array",
    "matplotlib.numerix.fft",
]
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")
package_data = {
    "matplotlib": [
        "mpl-data/fonts/afm/*.afm",
        "mpl-data/fonts/pdfcorefonts/*.afm",
        "mpl-data/fonts/pdfcorefonts/*.txt",
        "mpl-data/fonts/ttf/*.ttf",
        "mpl-data/images/*.xpm",
        "mpl-data/images/*.svg",
        "mpl-data/images/*.png",
コード例 #11
0
ファイル: setup.py プロジェクト: johnturingwu/matplotlib
                for opt in [*Distribution.display_option_names, 'help'])
            or 'clean' in sys.argv):
        # Go through all of the packages and figure out which ones we are
        # going to build/install.
        print_raw()
        print_raw("Edit setup.cfg to change the build options; "
                  "suppress output with --quiet.")
        print_raw()
        print_raw("BUILDING MATPLOTLIB")

        good_packages = []
        for package in mpl_packages:
            try:
                message = package.check()
            except setupext.Skipped as e:
                print_status(package.name, f"no  [{e}]")
                continue
            if message is not None:
                print_status(package.name, f"yes [{message}]")
            good_packages.append(package)

        print_raw()

        # Now collect all of the information we need to build all of the
        # packages.
        for package in good_packages:
            # Extension modules only get added in build_ext, as numpy will have
            # been installed (as setup_requires) at that point.
            data = package.get_package_data()
            for key, val in data.items():
                package_data.setdefault(key, [])
コード例 #12
0
ファイル: setup.py プロジェクト: minrk/ipython-svn-archive
if os.path.exists('MANIFEST'): os.remove('MANIFEST')

from distutils.core import setup

#---------------------------------------------------------------------------
# Test for dependencies
#---------------------------------------------------------------------------

from setupext import print_line, print_raw, print_status, print_message, \
    check_for_ipython, check_for_zopeinterface, check_for_twisted, \
    check_for_pexpect, check_for_httplib2, check_for_sqlalchemy, \
    check_for_simplejson

print_line()
print_raw("BUILDING IPYTHON1")
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_ipython():
    sys.exit(1)
if not check_for_zopeinterface():
    sys.exit(1)
if not check_for_twisted():
    sys.exit(1)

print_raw("")
print_raw("OPTIONAL DEPENDENCIES")
コード例 #13
0
ファイル: setup.py プロジェクト: PierreBdR/matplotlib
    # 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:
                print_status(package.name, 'no  [%s]' % str(e))
                if not package.optional:
                    required_failed.append(package)
            else:
                good_packages.append(package)
                if isinstance(package, setupext.OptionalBackendPackage):
                    if default_backend is None:
                        default_backend = package.name
    print_raw('')


    # Abort if any of the required packages can not be built.
    if required_failed:
        print_line()
コード例 #14
0
ファイル: setup.py プロジェクト: mgiuca-google/matplotlib
    # 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:
                print_status(package.name, 'no  [%s]' % str(e))
                if not package.optional:
                    required_failed.append(package)
            else:
                good_packages.append(package)
                if isinstance(package, setupext.OptionalBackendPackage):
                    if default_backend is None:
                        default_backend = package.name
    print_raw('')

    # Abort if any of the required packages can not be built.
    if required_failed:
        print_line()
        print_message("The following required packages can not "