diff options
author | Robert Kern <robert.kern@gmail.com> | 2005-09-28 02:56:52 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2005-09-28 02:56:52 +0000 |
commit | 2199334cfa7e3934bf81076510a84a73054ca868 (patch) | |
tree | 8765f3f63f0f2104231bdaf9b83811b50e3d88fc /scipy/base/numeric.py | |
parent | 861df810553f700101e479ac298d0bec7ca194f1 (diff) | |
download | numpy-2199334cfa7e3934bf81076510a84a73054ca868.tar.gz |
r3493@803638d6: kern | 2005-09-27 19:52:10 -0700
get_scipy_include() docs and fix; f2py updated to use get_scipy_include(); mtrand integration
Diffstat (limited to 'scipy/base/numeric.py')
-rw-r--r-- | scipy/base/numeric.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scipy/base/numeric.py b/scipy/base/numeric.py index b44dce62d..07e06620d 100644 --- a/scipy/base/numeric.py +++ b/scipy/base/numeric.py @@ -348,7 +348,17 @@ nan = NAN from oldnumeric import * def get_scipy_include(): + """Return the directory in the package that contains the scipy/*.h header + files. + + Extension modules that need to compile against scipy.base should use this + function to locate the appropriate include directory. Using distutils: + + import scipy + Extension('extension_name', ... + include_dirs=[scipy.get_scipy_include()]) + """ import os dir, fn = os.path.split(__file__) - return os.path.join(dir, 'include', 'scipy') + return os.path.join(dir, 'include') |