File tree 1 file changed +10
-4
lines changed
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):
133
133
]
134
134
data_files .extend (man_pages )
135
135
136
+ install_requires = [
137
+ 'pygments' ,
138
+ 'requests'
139
+ ]
140
+
136
141
extras_require = {
137
142
'urwid' : ['urwid' ]
138
143
}
@@ -162,6 +167,10 @@ def initialize_options(self):
162
167
if not using_setuptools :
163
168
scripts .append ('data/bpython-curtsies' )
164
169
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
+
165
174
# translations
166
175
mo_files = list ()
167
176
for language in os .listdir (translations_dir ):
@@ -179,10 +188,7 @@ def initialize_options(self):
179
188
url = "http://www.bpython-interpreter.org/" ,
180
189
long_description = """bpython is a fancy interface to the Python
181
190
interpreter for Unix-like operating systems.""" ,
182
- install_requires = [
183
- 'pygments' ,
184
- 'requests'
185
- ],
191
+ install_requires = install_requires ,
186
192
extras_require = extras_require ,
187
193
tests_require = ['mock' ],
188
194
packages = packages ,
You can’t perform that action at this time.
0 commit comments