File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 206
206
mod .extra_compile_args .append ('-DVERBOSE' )
207
207
208
208
209
+ extra_args = {}
210
+ if sys .version_info [0 ] >= 3 :
211
+ # Automatically 2to3 source on Python 3.x. This isn't set on
212
+ # Python 2 because it's not needed, and some really old
213
+ # versions of distribute don't support it.
214
+ extra_args ['use_2to3' ] = True
215
+
216
+
209
217
# Finally, pass this all along to distutils to do the heavy lifting.
210
218
distrib = setup (name = "matplotlib" ,
211
219
version = __version__ ,
234
242
# List third-party Python packages that we require
235
243
install_requires = install_requires ,
236
244
237
- # Automatically 2to3 source on Python 3.x
238
- use_2to3 = True ,
239
-
240
245
# matplotlib has C/C++ extensions, so it's not zip safe.
241
246
# Telling setuptools this prevents it from doing an automatic
242
247
# check for zip safety.
243
248
zip_safe = False ,
249
+
250
+ ** extra_args
244
251
)
You can’t perform that action at this time.
0 commit comments