File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed 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 @@ -219,6 +219,13 @@ def initialize_options(self):
219219 'urwid' : ['urwid' ],
220220 'watch' : ['watchdog' ],
221221 'jedi' : ['jedi' ],
222+ # need PyOpenSSL for SNI support (only 2.X and on Darwin)
223+ # list of packages taken from
224+ # https://github.com/kennethreitz/requests/blob/master/requests/packages/urllib3/contrib/pyopenssl.py
225+ ':sys_platform == "darwin" and ' \
226+ '(python_version == "2.6" or python_version == "2.7")' : [
227+ 'PyOpenSSL' , 'ndg-httpsclient' , 'pyasn1'
228+ ]
222229}
223230
224231packages = [
@@ -239,14 +246,6 @@ def initialize_options(self):
239246 ]
240247}
241248
242- if sys .version_info [0 ] == 2 and sys .platform == "darwin" :
243- # need PyOpenSSL for SNI support (only 2.X and on Darwin)
244- # list of packages taken from
245- # https://github.com/kennethreitz/requests/blob/master/requests/packages/urllib3/contrib/pyopenssl.py
246- install_requires .append ('PyOpenSSL' )
247- install_requires .append ('ndg-httpsclient' )
248- install_requires .append ('pyasn1' )
249-
250249tests_require = []
251250if sys .version_info [0 ] == 2 and sys .version_info [1 ] < 7 :
252251 tests_require .append ('unittest2' )
You can’t perform that action at this time.
0 commit comments