Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59759ab

Browse files
committed
added numpy version check at build time
svn path=/trunk/matplotlib/; revision=5074
1 parent e4c9a1a commit 59759ab

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

setupext.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,14 @@ def check_for_numpy():
539539
print_status("numpy", "no")
540540
print_message("You must install numpy to build matplotlib.")
541541
return False
542+
543+
major, minor1, minor2 = map(int, numpy.__version__.split('.')[:3])
544+
if major<1 or (major==1 and minor1<1):
545+
print_status("numpy version", "no")
546+
print_message("You must install numpy 1.1 or later to build matplotlib.")
547+
548+
return False
549+
542550
module = Extension('test', [])
543551
add_numpy_flags(module)
544552
add_base_flags(module)

0 commit comments

Comments
 (0)