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