예제 #1
0
        parallel='pyzmq>=2.1.11',
        qtconsole=['pyzmq>=2.1.11', 'pygments'],
        zmq='pyzmq>=2.1.11',
        doc='Sphinx>=0.3',
        test='nose>=0.10.1',
        notebook=['tornado>=3.1', 'pyzmq>=2.1.11', 'jinja2'],
        nbconvert=['pygments', 'jinja2', 'Sphinx>=0.3'])
    everything = set()
    for deps in setup_args['extras_require'].values():
        if not isinstance(deps, list):
            deps = [deps]
        for dep in deps:
            everything.add(dep)
    setup_args['extras_require']['all'] = everything

    requires = setup_args.setdefault('install_requires', [])
    setupext.display_status = False
    if not setupext.check_for_readline():
        if sys.platform == 'darwin':
            requires.append('readline')
        elif sys.platform.startswith('win'):
            # Pyreadline 64 bit windows issue solved in versions >=1.7.1
            # Also solves issues with some older versions of pyreadline that
            # satisfy the unconstrained depdendency.
            requires.append('pyreadline>=1.7.1')
        else:
            pass
            # do we want to install readline here?

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
예제 #2
0
    import setuptools

# This dict is used for passing extra arguments that are setuptools 
# specific to setup
setuptools_extra_args = {}

if 'setuptools' in sys.modules:
    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = find_scripts(True)
    setup_args['extras_require'] = dict(
        parallel = 'pyzmq>=2.1.4',
        zmq = 'pyzmq>=2.1.4',
        doc='Sphinx>=0.3',
        test='nose>=0.10.1',
    )
    requires = setup_args.setdefault('install_requires', [])
    setupext.display_status = False
    if not setupext.check_for_readline():
        if sys.platform == 'darwin':
            requires.append('readline')
        elif sys.platform.startswith('win'):
            requires.append('pyreadline')
        else:
            pass
            # do we want to install readline here?
    
    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows
    # post-install scripts MUST reside in the scripts/ dir, otherwise distutils
    # doesn't find them.
    if 'bdist_wininst' in sys.argv:
예제 #3
0
파일: setup.py 프로젝트: nialloc/ipython
    needs_setuptools.add("install")

if len(needs_setuptools.intersection(sys.argv)) > 0:
    import setuptools

# This dict is used for passing extra arguments that are setuptools
# specific to setup
setuptools_extra_args = {}

if "setuptools" in sys.modules:
    setuptools_extra_args["zip_safe"] = False
    setuptools_extra_args["entry_points"] = find_scripts(True)
    setup_args["extras_require"] = dict(
        parallel="pyzmq>=2.1.4", zmq="pyzmq>=2.1.4", doc="Sphinx>=0.3", test="nose>=0.10.1", notebook="tornado>=2.0"
    )
    requires = setup_args.setdefault("install_requires", [])
    setupext.display_status = False
    if not setupext.check_for_readline():
        if sys.platform == "darwin":
            requires.append("readline")
        elif sys.platform.startswith("win"):
            # Pyreadline 64 bit windows issue solved in versions >=1.7.1
            # Also solves issues with some older versions of pyreadline that
            # satisfy the unconstrained depdendency.
            requires.append("pyreadline>=1.7.1")
        else:
            pass
            # do we want to install readline here?

    # Script to be run by the windows binary installer after the default setup
    # routine, to add shortcuts and similar windows-only things.  Windows