Exemplo n.º 1
0
if sys.version_info < (3, 3):
    extras_require['test'].append('mock')

extras_require['notebook'].extend(extras_require['nbformat'])
extras_require['nbconvert'].extend(extras_require['nbformat'])

install_requires = [
    'decorator',
    'pickleshare',
    'simplegeneric>0.8',
]

# add platform-specific dependencies
if sys.platform == 'darwin':
    install_requires.append('appnope')
    if 'bdist_wheel' in sys.argv[1:] or not check_for_readline():
        install_requires.append('gnureadline')

if sys.platform.startswith('win'):
    extras_require['terminal'].append('pyreadline>=2.0')
else:
    install_requires.append('pexpect')

everything = set()
for deps in extras_require.values():
    everything.update(deps)
extras_require['all'] = everything

if 'setuptools' in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop
Exemplo n.º 2
0
    extras_require['test'].append('mock')

extras_require['notebook'].extend(extras_require['nbformat'])
extras_require['nbconvert'].extend(extras_require['nbformat'])

install_requires = [
    'decorator',
    'pickleshare',
    'simplegeneric>0.8',
    'traitlets',
]

# add platform-specific dependencies
if sys.platform == 'darwin':
    install_requires.append('appnope')
    if 'bdist_wheel' in sys.argv[1:] or not check_for_readline():
        install_requires.append('gnureadline')

if sys.platform.startswith('win'):
    extras_require['terminal'].append('pyreadline>=2.0')
else:
    install_requires.append('pexpect')

everything = set()
for deps in extras_require.values():
    everything.update(deps)
extras_require['all'] = everything

if 'setuptools' in sys.modules:
    # setup.py develop should check for submodules
    from setuptools.command.develop import develop