# withNumPy enables some extensions:
# * faster adding of contours from NumPy arrays
# * data style STYLE_NUMPY to get contours and TriStrips
+# set this to False if you don't have numpy installed or you don't want to
+# enable support for it,
-# if withNumPy is True, set the include path for numpy/arrayobject.h
-# the example is for python on Windows:
# defaultStyle may be used to set the default style to one of:
# * STYLE_TUPLE to get tuples of points
# * STYLE_LIST to get lists of points
- print "Using NumPy extension"
+ print "Using NumPy extension"
- print "NumPy extension not found!"
+ print "NumPy extension not found!"
# alloca() needs malloc.h under Windows
-if withNumPy and numPyIncludePath:
longdesc = """THIS VERSION WORKS WITH PYTHON-2.x ONLY!
Polygon is a python package that handles polygonal shapes in 2D. It contains