コード例 #1
0
    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:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
    setup_args['cmdclass']['develop'] = require_submodules(develop)

    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = find_scripts(
        True, suffix='3' if PY3 else '')
    setup_args['extras_require'] = dict(
        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
コード例 #2
0
ファイル: setup.py プロジェクト: pombredanne/ipython
# For some commands, use setuptools.  Note that we do NOT list install here!
# If you want a setuptools-enhanced install, just run 'setupegg.py install'
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
           'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
           'build_sphinx', 'egg_info', 'easy_install', 'upload',
            )).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',
    )
    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
コード例 #3
0
            'install_egg_info',
            'build_sphinx',
            'egg_info',
            'easy_install',
            'upload',
        )).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'] = {
        'console_scripts': find_scripts(True)
    }
    setup_args['extras_require'] = dict(
        parallel='pyzmq>=2.1.4',
        zmq='pyzmq>=2.0.10.1',
        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:
コード例 #4
0
ファイル: setup.py プロジェクト: samucc/kuma
                pjoin(dirpath, f) for f in filenames if not f.endswith('~')
            ]
        # then, make them all dependencies for the main PDF (the html will get
        # auto-generated as well).
        to_update.append(
            ('docs/dist/ipython.pdf', docdeps, "cd docs && make dist"))

    [target_update(*t) for t in to_update]

#---------------------------------------------------------------------------
# Find all the packages, package data, scripts and data_files
#---------------------------------------------------------------------------

packages = find_packages()
package_data = find_package_data()
scripts = find_scripts()
data_files = find_data_files()

#---------------------------------------------------------------------------
# Handle dependencies and setuptools specific things
#---------------------------------------------------------------------------

# 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'] = {
        'console_scripts': [
            'ipython = IPython.ipapi:launch_new_instance',
コード例 #5
0
    # Depend on setuptools for install on *Windows only*
    # If we get script-installation working without setuptools,
    # then we can back off, but until then use it.
    # See Issue #369 on GitHub for more
    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',
    )
    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') and sys.maxsize < 2**32:
            # only require pyreadline on 32b Windows, due to 64b bug in pyreadline:
            # https://bugs.launchpad.net/pyreadline/+bug/787574
            requires.append('pyreadline')
コード例 #6
0
        # auto-generated as well).
        to_update.append(
            ('docs/dist/ipython.pdf',
             docdeps,
             "cd docs && make dist")
            )
        
    [ target_update(*t) for t in to_update ]
    
#---------------------------------------------------------------------------
# Find all the packages, package data, scripts and data_files
#---------------------------------------------------------------------------

packages = find_packages()
package_data = find_package_data()
scripts = find_scripts()
data_files = find_data_files()

#---------------------------------------------------------------------------
# Handle dependencies and setuptools specific things
#---------------------------------------------------------------------------

# For some commands, use setuptools.  Note that we do NOT list install here!
# If you want a setuptools-enhanced install, just run 'setupegg.py install'
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
           'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
           'build_sphinx', 'egg_info', 'easy_install', 'upload',
            )).intersection(sys.argv)) > 0:
    import setuptools

# This dict is used for passing extra arguments that are setuptools 
コード例 #7
0
import os.path
import sys
from setuptools import setup
from setuptools.command.build_py import build_py

from setupbase import (
    setup_args,
    find_scripts,
    find_packages,
    find_package_data,
    record_commit_info,
)

setup_args['entry_points'] = find_scripts(True, suffix='3')
setup_args['packages'] = find_packages()
setup_args['package_data'] = find_package_data()
setup_args['cmdclass'] = {
    'build_py': record_commit_info('IPython', build_cmd=build_py)
}

# 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:
    if len(sys.argv) > 2 and \
           ('sdist' in sys.argv or 'bdist_rpm' in sys.argv):
        print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting."
        sys.exit(1)
    setup_args['scripts'] = [
        os.path.join('scripts', 'ipython_win_post_install.py')
コード例 #8
0
ファイル: setup.py プロジェクト: nialloc/ipython
    # Depend on setuptools for install on *Windows only*
    # If we get script-installation working without setuptools,
    # then we can back off, but until then use it.
    # See Issue #369 on GitHub for more
    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
コード例 #9
0
ファイル: setup3.py プロジェクト: adgaudio/ipython
import os.path
from setuptools import setup
from setuptools.command.build_py import build_py

from setupbase import (setup_args,
                       find_scripts,
                       find_packages,
                       find_package_data,
                       record_commit_info,
                       )
    
setup_args['entry_points'] = find_scripts(True, suffix='3')
setup_args['packages'] = find_packages()
setup_args['package_data'] = find_package_data()
setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}

def main():
    setup(use_2to3 = True, **setup_args)
    
if __name__ == "__main__":
    main()
コード例 #10
0
ファイル: setup.py プロジェクト: VivekVetri/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:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
    setup_args['cmdclass']['develop'] = require_submodules(develop)
    
    setuptools_extra_args['zip_safe'] = False
    setuptools_extra_args['entry_points'] = find_scripts(True, suffix = '3' if PY3 else '')
    setup_args['extras_require'] = dict(
        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)
コード例 #11
0
ファイル: setup.py プロジェクト: ddale/ipython
# For some commands, use setuptools.  Note that we do NOT list install here!
# If you want a setuptools-enhanced install, just run 'setupegg.py install'
if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm',
           'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info',
           'build_sphinx', 'egg_info', 'easy_install', 'upload',
            )).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'] = {
        'console_scripts': find_scripts(True)
    }
    setup_args['extras_require'] = dict(
        parallel = 'pyzmq>=2.1.4',
        zmq = 'pyzmq>=2.0.10.1',
        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: