diff options
| author | Travis Oliphant <oliphant@enthought.com> | 2006-01-04 17:26:31 +0000 |
|---|---|---|
| committer | Travis Oliphant <oliphant@enthought.com> | 2006-01-04 17:26:31 +0000 |
| commit | 8e2654541c6eae0f308908f501cccbc86b2f9101 (patch) | |
| tree | bfcfe3b282c8fb659832bf86a841ce76852094ad /numpy/f2py/tests/array_from_pyobj/setup.py | |
| parent | ddaed649c23bbd0ad36cdafdfe9cd92397ce69e3 (diff) | |
| download | numpy-8e2654541c6eae0f308908f501cccbc86b2f9101.tar.gz | |
Moved scipy directory to numpy
Diffstat (limited to 'numpy/f2py/tests/array_from_pyobj/setup.py')
| -rw-r--r-- | numpy/f2py/tests/array_from_pyobj/setup.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/numpy/f2py/tests/array_from_pyobj/setup.py b/numpy/f2py/tests/array_from_pyobj/setup.py new file mode 100644 index 000000000..ff7ff8cfc --- /dev/null +++ b/numpy/f2py/tests/array_from_pyobj/setup.py @@ -0,0 +1,26 @@ + +import os +def configuration(parent_name='',top_path=None): + from scipy.distutils.misc_util import Configuration + + config = Configuration('array_from_pyobj',parent_name,top_path) + #import scipy.f2py as f2py + #f2pydir=os.path.dirname(os.path.abspath(f2py.__file__)) + f2pydir=os.path.join(config.local_path,'..','..') + fobjhsrc = os.path.join(f2pydir,'src','fortranobject.h') + fobjcsrc = os.path.join(f2pydir,'src','fortranobject.c') + config.add_extension('wrap', + sources = ['wrapmodule.c',fobjcsrc], + include_dirs = [os.path.dirname(fobjhsrc)], + depends = [fobjhsrc,fobjcsrc], + define_macros = [('DEBUG_COPY_ND_ARRAY',1), + #('F2PY_REPORT_ON_ARRAY_COPY',1), + #('F2PY_REPORT_ATEXIT',1) + ] + ) + + return config + +if __name__ == "__main__": + from scipy.distutils.core import setup + setup(**configuration(top_path='').todict()) |
