##// END OF EJS Templates
add ipython[terminal] dependency group...
MinRK -
Show More
@@ -270,6 +270,7 b' extras_require = dict('
270 270 zmq = ['pyzmq>=2.1.11'],
271 271 doc = ['Sphinx>=1.1', 'numpydoc'],
272 272 test = ['nose>=0.10.1'],
273 terminal = [],
273 274 notebook = ['tornado>=3.1', 'pyzmq>=2.1.11', 'jinja2'],
274 275 nbconvert = ['pygments', 'jinja2', 'Sphinx>=0.3']
275 276 )
@@ -282,9 +283,13 b' for deps in extras_require.values():'
282 283 extras_require['all'] = everything
283 284
284 285 install_requires = []
286
287 # add readline
285 288 if sys.platform == 'darwin':
286 289 if any(arg.startswith('bdist') for arg in sys.argv) or not setupext.check_for_readline():
287 290 install_requires.append('gnureadline')
291 elif sys.platform.startswith('win'):
292 extras_require['terminal'].append('pyreadline>=2.0')
288 293
289 294
290 295 if 'setuptools' in sys.modules:
@@ -8,18 +8,12 b' This includes:'
8 8 * Functions for finding things like packages, package data, etc.
9 9 * A function for checking dependencies.
10 10 """
11 from __future__ import print_function
12 11
13 #-------------------------------------------------------------------------------
14 # Copyright (C) 2008 The IPython Development Team
15 #
16 # Distributed under the terms of the BSD License. The full license is in
17 # the file COPYING, distributed as part of this software.
18 #-------------------------------------------------------------------------------
12 # Copyright (c) IPython Development Team.
13 # Distributed under the terms of the Modified BSD License.
14
15 from __future__ import print_function
19 16
20 #-------------------------------------------------------------------------------
21 # Imports
22 #-------------------------------------------------------------------------------
23 17 import errno
24 18 import os
25 19 import sys
@@ -647,7 +641,8 b' def get_bdist_wheel():'
647 641 for pkg in ("gnureadline", "pyreadline", "mock"):
648 642 _remove_startswith(requires, pkg)
649 643 requires.append("gnureadline; sys.platform == 'darwin' and platform.python_implementation == 'CPython'")
650 requires.append("pyreadline (>=2.0); sys.platform == 'win32' and platform.python_implementation == 'CPython'")
644 requires.append("pyreadline (>=2.0); extra == 'terminal' and sys.platform == 'win32' and platform.python_implementation == 'CPython'")
645 requires.append("pyreadline (>=2.0); extra == 'all' and sys.platform == 'win32' and platform.python_implementation == 'CPython'")
651 646 requires.append("mock; extra == 'test' and python_version < '3.3'")
652 647 for r in requires:
653 648 pkg_info['Requires-Dist'] = r
General Comments 0
You need to be logged in to leave comments. Login now