summaryrefslogtreecommitdiff
path: root/numpy/lib/utils.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-20 17:58:45 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-20 17:58:45 +0000
commit622701d2159a7d25153db1bfc270d4b710c0eaa1 (patch)
tree09754f49d43628ae60f9f3b0194d9c2db35ee222 /numpy/lib/utils.py
parent999b6cd79c2609225a5793db81c346cff0ceec7b (diff)
downloadnumpy-622701d2159a7d25153db1bfc270d4b710c0eaa1.tar.gz
Clean up docstrings.
Diffstat (limited to 'numpy/lib/utils.py')
-rw-r--r--numpy/lib/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py
index 06c1252eb..5e50ba487 100644
--- a/numpy/lib/utils.py
+++ b/numpy/lib/utils.py
@@ -34,7 +34,7 @@ def get_include():
assert len(include_dirs)==1,`include_dirs`
return include_dirs[0]
-def get_numarray_include():
+def get_numarray_include(type=None):
"""Return the directory in the package that contains the numpy/*.h header
files.
@@ -46,8 +46,12 @@ def get_numarray_include():
include_dirs=[numpy.get_include()])
"""
from numpy.numarray import get_numarray_include_dirs
+ from numpy.distutils.misc_util import get_numpy_include_dirs
include_dirs = get_numarray_include_dirs()
- return include_dirs[0]
+ if type is None:
+ return include_dirs[0]
+ else:
+ return include_dirs + get_numpy_include_dirs()
# Adapted from Albert Strasheim