--- setup.py.orig 2011-04-07 15:26:45.000000000 +0400 +++ setup.py 2011-04-07 15:27:57.000000000 +0400 @@ -6,12 +6,16 @@ # * faster adding of contours from NumPy arrays # * data style STYLE_NUMPY to get contours and TriStrips # as NumPy arrays -withNumPy=False +withNumPy=True # if withNumPy is True, set the include path for numpy/arrayobject.h # the example is for python on Windows: # numPyIncludePath='C:\\Python26\\Lib\\site-packages\\numpy\\core\\include' -numPyIncludePath='' +try: + import numpy +except ImportError: + raise Exception("PYTHON interface requires numpy") +numPyIncludePath = numpy.get_include() # defaultStyle may be used to set the default style to one of: # * STYLE_TUPLE to get tuples of points