File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 206206 mod .extra_compile_args .append ('-DVERBOSE' )
207207
208208
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+
209217 # Finally, pass this all along to distutils to do the heavy lifting.
210218 distrib = setup (name = "matplotlib" ,
211219 version = __version__ ,
234242 # List third-party Python packages that we require
235243 install_requires = install_requires ,
236244
237- # Automatically 2to3 source on Python 3.x
238- use_2to3 = True ,
239-
240245 # matplotlib has C/C++ extensions, so it's not zip safe.
241246 # Telling setuptools this prevents it from doing an automatic
242247 # check for zip safety.
243248 zip_safe = False ,
249+
250+ ** extra_args
244251 )
You can’t perform that action at this time.
0 commit comments