Changeset 11085

Show
Ignore:
Timestamp:
03/26/07 23:34:54 (2 years ago)
Author:
hobu
Message:

backport a slightly modified version of Didrik's patch for #1477

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/swig/python/setup.py

    r10433 r11085  
    2828    import numpy 
    2929    HAVE_NUMPY=True 
    30     print 'numpy include', get_numpy_include() 
    31     if get_numpy_include() =='.': 
    32         print "numpy headers were not found!  Array support will not be enabled" 
    33         HAVE_NUMPY=False 
     30    numpy_major = numpy.__version__.split('.')[0] 
     31    if int(numpy_major) < 1: 
     32        print "numpy version must be > 1.0.0" 
     33        HAVE_NUMPY = False 
     34    else: 
     35        print 'numpy include', get_numpy_include() 
     36        if get_numpy_include() =='.': 
     37            print "numpy headers were not found!  Array support will not be enabled" 
     38            HAVE_NUMPY=False 
    3439except ImportError: 
    3540    pass