Skip to content

Commit f00a46f

Browse files
committed
Depend on PyOpenSSL for SNI support (fixes bpython#430)
This is only required for Python 2.X on Mac OS X. Signed-off-by: Sebastian Ramacher <sebastian@ramacher.at>
1 parent 971d166 commit f00a46f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ def initialize_options(self):
133133
]
134134
data_files.extend(man_pages)
135135

136+
install_requires = [
137+
'pygments',
138+
'requests'
139+
]
140+
136141
extras_require = {
137142
'urwid' : ['urwid']
138143
}
@@ -162,6 +167,10 @@ def initialize_options(self):
162167
if not using_setuptools:
163168
scripts.append('data/bpython-curtsies')
164169

170+
if sys.version_info[0] == 2 and sys.platform == "darwin":
171+
# need PyOpenSSL for SNI support (only 2.X and on Darwin)
172+
install_requires.append('PyOpenSSL')
173+
165174
# translations
166175
mo_files = list()
167176
for language in os.listdir(translations_dir):
@@ -179,10 +188,7 @@ def initialize_options(self):
179188
url = "http://www.bpython-interpreter.org/",
180189
long_description = """bpython is a fancy interface to the Python
181190
interpreter for Unix-like operating systems.""",
182-
install_requires = [
183-
'pygments',
184-
'requests'
185-
],
191+
install_requires = install_requires,
186192
extras_require = extras_require,
187193
tests_require = ['mock'],
188194
packages = packages,

0 commit comments

Comments
 (0)