Show More
@@ -202,7 +202,8 b' install_requires = [' | |||||
202 | # but requires pip >= 6. pip < 6 ignores these. |
|
202 | # but requires pip >= 6. pip < 6 ignores these. | |
203 | extras_require.update({ |
|
203 | extras_require.update({ | |
204 | ':sys_platform != "win32"': ['pexpect'], |
|
204 | ':sys_platform != "win32"': ['pexpect'], | |
205 |
':sys_platform == "darwin"': ['appnope' |
|
205 | ':sys_platform == "darwin"': ['appnope'], | |
|
206 | ':sys_platform == "darwin" and python_implementation == "CPython"': ['gnureadline'], | |||
206 | 'terminal:sys_platform == "win32"': ['pyreadline>=2'], |
|
207 | 'terminal:sys_platform == "win32"': ['pyreadline>=2'], | |
207 | 'test:python_version == "2.7"': ['mock'], |
|
208 | 'test:python_version == "2.7"': ['mock'], | |
208 | }) |
|
209 | }) | |
@@ -213,7 +214,17 b" if not any(arg.startswith('bdist') for arg in sys.argv):" | |||||
213 | extras_require['test'].append('mock') |
|
214 | extras_require['test'].append('mock') | |
214 |
|
215 | |||
215 | if sys.platform == 'darwin': |
|
216 | if sys.platform == 'darwin': | |
216 |
install_requires.extend(['appnope' |
|
217 | install_requires.extend(['appnope']) | |
|
218 | have_readline = False | |||
|
219 | try: | |||
|
220 | import readline | |||
|
221 | except ImportError: | |||
|
222 | pass | |||
|
223 | else: | |||
|
224 | if 'libedit' not in readline.__doc__: | |||
|
225 | have_readline = True | |||
|
226 | if not have_readline: | |||
|
227 | install_requires.extend(['gnureadline']) | |||
217 |
|
228 | |||
218 | if sys.platform.startswith('win'): |
|
229 | if sys.platform.startswith('win'): | |
219 | extras_require['terminal'].append('pyreadline>=2.0') |
|
230 | extras_require['terminal'].append('pyreadline>=2.0') |
General Comments 0
You need to be logged in to leave comments.
Login now