File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,9 @@ def latex():
65
65
print 'latex build has not been tested on windows'
66
66
67
67
def clean ():
68
- shutil .rmtree ("build" )
69
- shutil .rmtree ("examples" )
68
+ for dirpath in ['build' , 'examples' ]:
69
+ if os .path .exists (dirpath ):
70
+ shutil .rmtree (dirpath )
70
71
for pattern in ['mpl_examples/api/*.png' ,
71
72
'mpl_examples/pylab_examples/*.png' ,
72
73
'mpl_examples/pylab_examples/*.pdf' ,
Original file line number Diff line number Diff line change @@ -499,9 +499,10 @@ def check_for_numpy():
499
499
return False
500
500
nn = numpy .__version__ .split ('.' )
501
501
if not (int (nn [0 ]) >= 1 and int (nn [1 ]) >= 1 ):
502
- print_message (
503
- 'numpy 1.1 or later is required; you have %s' % numpy .__version__ )
504
- return False
502
+ if not int (nn [0 ]) >= 1 :
503
+ print_message (
504
+ 'numpy 1.1 or later is required; you have %s' % numpy .__version__ )
505
+ return False
505
506
module = Extension ('test' , [])
506
507
add_numpy_flags (module )
507
508
add_base_flags (module )
You can’t perform that action at this time.
0 commit comments