File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,11 @@ def initialize_options(self):
133133]
134134data_files .extend (man_pages )
135135
136+ install_requires = [
137+ 'pygments' ,
138+ 'requests'
139+ ]
140+
136141extras_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
166175mo_files = list ()
167176for 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 ,
You can’t perform that action at this time.
0 commit comments