File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 147
147
import numpy
148
148
nn = numpy .__version__ .split ('.' )
149
149
if not (int (nn [0 ]) >= 1 and int (nn [1 ]) >= 1 ):
150
- raise ImportError (
151
- 'numpy 1.1 or later is required; you have %s' % numpy .__version__ )
150
+ if not (int (nn [0 ]) >= 2 ):
151
+ raise ImportError (
152
+ 'numpy 1.1 or later is required; you have %s' %
153
+ numpy .__version__ )
152
154
153
155
def is_string_like (obj ):
154
156
if hasattr (obj , 'shape' ): return 0
Original file line number Diff line number Diff line change @@ -516,9 +516,11 @@ def check_for_numpy():
516
516
return False
517
517
nn = numpy .__version__ .split ('.' )
518
518
if not (int (nn [0 ]) >= 1 and int (nn [1 ]) >= 1 ):
519
- print_message (
520
- 'numpy 1.1 or later is required; you have %s' % numpy .__version__ )
521
- return False
519
+ if not (int (nn [0 ]) >= 2 ):
520
+ print_message (
521
+ 'numpy 1.1 or later is required; you have %s' %
522
+ numpy .__version__ )
523
+ return False
522
524
module = Extension ('test' , [])
523
525
add_numpy_flags (module )
524
526
add_base_flags (module )
You can’t perform that action at this time.
0 commit comments