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