Skip to content

Commit 8aa4ddf

Browse files
committed
Build wheel
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 49818b9 commit 8aa4ddf

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal = 1

setup.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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

224231
packages = [
@@ -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-
250249
tests_require = []
251250
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
252251
tests_require.append('unittest2')

0 commit comments

Comments
 (0)