summaryrefslogtreecommitdiff
path: root/doc/swig/test/setup.py
diff options
context:
space:
mode:
authorrgommers <ralf.gommers@googlemail.com>2011-03-07 09:38:32 +0800
committerrgommers <ralf.gommers@googlemail.com>2011-03-11 12:27:02 +0800
commit083f6e1933dc244db6a97b49830071be6aa6555c (patch)
tree6234a45e7085b9f0b6e9364d80e8a640c369a9c4 /doc/swig/test/setup.py
parent44ae46c70d0b9cb4909bfafe1e4dbef3cd90f5b9 (diff)
downloadnumpy-083f6e1933dc244db6a97b49830071be6aa6555c.tar.gz
DEP: remove deprecated get_numpy_include.
Diffstat (limited to 'doc/swig/test/setup.py')
-rwxr-xr-xdoc/swig/test/setup.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/doc/swig/test/setup.py b/doc/swig/test/setup.py
index fadf8b5cd..f2fc29aac 100755
--- a/doc/swig/test/setup.py
+++ b/doc/swig/test/setup.py
@@ -7,11 +7,8 @@ from distutils import sysconfig
# Third-party modules - we depend on numpy for everything
import numpy
-# Obtain the numpy include directory. This logic works across numpy versions.
-try:
- numpy_include = numpy.get_include()
-except AttributeError:
- numpy_include = numpy.get_numpy_include()
+# Obtain the numpy include directory.
+numpy_include = numpy.get_include()
# Array extension module
_Array = Extension("_Array",