Show More
@@ -200,10 +200,11 install_requires = [ | |||||
200 | # Platform-specific dependencies: |
|
200 | # Platform-specific dependencies: | |
201 | # This is the correct way to specify these, |
|
201 | # This is the correct way to specify these, | |
202 | # but requires pip >= 6. pip < 6 ignores these. |
|
202 | # but requires pip >= 6. pip < 6 ignores these. | |
|
203 | ||||
203 | extras_require.update({ |
|
204 | extras_require.update({ | |
204 | ':sys_platform != "win32"': ['pexpect'], |
|
205 | ':sys_platform != "win32"': ['pexpect'], | |
205 | ':sys_platform == "darwin"': ['appnope'], |
|
206 | ':sys_platform == "darwin"': ['appnope'], | |
206 | ':sys_platform == "darwin" and python_implementation == "CPython"': ['gnureadline'], |
|
207 | ':sys_platform == "darwin" and platform_python_implementation == "CPython"': ['gnureadline'], | |
207 | 'terminal:sys_platform == "win32"': ['pyreadline>=2'], |
|
208 | 'terminal:sys_platform == "win32"': ['pyreadline>=2'], | |
208 | 'test:python_version == "2.7"': ['mock'], |
|
209 | 'test:python_version == "2.7"': ['mock'], | |
209 | }) |
|
210 | }) | |
@@ -230,6 +231,14 if not any(arg.startswith('bdist') for arg in sys.argv): | |||||
230 | extras_require['terminal'].append('pyreadline>=2.0') |
|
231 | extras_require['terminal'].append('pyreadline>=2.0') | |
231 | else: |
|
232 | else: | |
232 | install_requires.append('pexpect') |
|
233 | install_requires.append('pexpect') | |
|
234 | ||||
|
235 | # workaround pypa/setuptools#147, where setuptools misspells | |||
|
236 | # platform_python_implementation as python_implementation | |||
|
237 | if 'setuptools' in sys.modules: | |||
|
238 | for key in list(extras_require): | |||
|
239 | if 'platform_python_implementation' in key: | |||
|
240 | new_key = key.replace('platform_python_implementation', 'python_implementation') | |||
|
241 | extras_require[new_key] = extras_require.pop(key) | |||
233 |
|
242 | |||
234 | everything = set() |
|
243 | everything = set() | |
235 | for key, deps in extras_require.items(): |
|
244 | for key, deps in extras_require.items(): |
General Comments 0
You need to be logged in to leave comments.
Login now