File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed
Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,10 @@ Dependencies
1818* watchdog (optional, for monitoring imported modules for changes)
1919* jedi (optional, for experimental multiline completion)
2020
21- If you are using Python 2 on Mac OS X , the following dependencies are required
22- as well :
21+ If you are using Python 2 before 2.7.7 , the following dependency is also
22+ required :
2323
24- * pyOpenSSL
25- * ndg-httpsclien
26- * pyasn1
24+ * requests[security]
2725
2826If you have problems installing cffi which is needed by pyOpenSSL,
2927please take a look at https://cffi.readthedocs.org/en/release-0.8/#macos-x.
Original file line number Diff line number Diff line change 1+ [bdist_wheel]
2+ universal = 1
Original file line number Diff line number Diff line change @@ -220,6 +220,17 @@ def initialize_options(self):
220220 'urwid' : ['urwid' ],
221221 'watch' : ['watchdog' ],
222222 'jedi' : ['jedi' ],
223+ # need requests[security] for SNI support (only before 2.7.7)
224+ ':python_version == "2.6" or '
225+ 'python_full_version == "2.7.0" or ' \
226+ 'python_full_version == "2.7.1" or ' \
227+ 'python_full_version == "2.7.2" or ' \
228+ 'python_full_version == "2.7.3" or ' \
229+ 'python_full_version == "2.7.4" or ' \
230+ 'python_full_version == "2.7.5" or ' \
231+ 'python_full_version == "2.7.6"' : [
232+ 'requests[security]'
233+ ]
223234}
224235
225236packages = [
@@ -240,14 +251,6 @@ def initialize_options(self):
240251 ]
241252}
242253
243- if sys .version_info [0 ] == 2 and sys .platform == "darwin" :
244- # need PyOpenSSL for SNI support (only 2.X and on Darwin)
245- # list of packages taken from
246- # https://github.com/kennethreitz/requests/blob/master/requests/packages/urllib3/contrib/pyopenssl.py
247- install_requires .append ('PyOpenSSL' )
248- install_requires .append ('ndg-httpsclient' )
249- install_requires .append ('pyasn1' )
250-
251254tests_require = []
252255if sys .version_info [0 ] == 2 and sys .version_info [1 ] < 7 :
253256 tests_require .append ('unittest2' )
You can’t perform that action at this time.
0 commit comments