##// END OF EJS Templates
Merge pull request #5571 from minrk/readline-deps...
Thomas Kluyver -
r16387:8a98cfed merge
parent child Browse files
Show More
@@ -271,6 +271,7 b' extras_require = dict('
271 271 zmq = ['pyzmq>=2.1.11'],
272 272 doc = ['Sphinx>=1.1', 'numpydoc'],
273 273 test = ['nose>=0.10.1'],
274 terminal = [],
274 275 notebook = ['tornado>=3.1', 'pyzmq>=2.1.11', 'jinja2'],
275 276 nbconvert = ['pygments', 'jinja2', 'Sphinx>=0.3']
276 277 )
@@ -283,12 +284,14 b' for deps in extras_require.values():'
283 284 extras_require['all'] = everything
284 285
285 286 install_requires = []
287
288 # add readline
286 289 if sys.platform == 'darwin':
287 290 if any(arg.startswith('bdist') for arg in sys.argv) or not setupext.check_for_readline():
288 291 install_requires.append('gnureadline')
289 292 elif sys.platform.startswith('win'):
290 # Pyreadline has unicode and Python 3 fixes in 2.0
291 install_requires.append('pyreadline>=2.0')
293 extras_require['terminal'].append('pyreadline>=2.0')
294
292 295
293 296 if 'setuptools' in sys.modules:
294 297 # setup.py develop should check for submodules
@@ -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