diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-03-06 19:10:14 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-03-06 19:10:14 +0000 |
commit | 399018f2b1f68877c622f8ca015c10fb40e6f625 (patch) | |
tree | e007f0eedf8959597e1efddf63c99f60f37129c1 /numpy/f2py/tests/array_from_pyobj/setup.py | |
parent | 0132351b0073f464060e1bac8b0595198c31a4e9 (diff) | |
download | numpy-399018f2b1f68877c622f8ca015c10fb40e6f625.tar.gz |
ENH: f2py: convert test suite to Nose form
Rewrite F2Py's test suite, so that it is run as a part of Numpy's tests.
These tests require compiling extension modules on-the-fly, so I added
a small helper module for that.
Diffstat (limited to 'numpy/f2py/tests/array_from_pyobj/setup.py')
-rw-r--r-- | numpy/f2py/tests/array_from_pyobj/setup.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/numpy/f2py/tests/array_from_pyobj/setup.py b/numpy/f2py/tests/array_from_pyobj/setup.py deleted file mode 100644 index 520e3dd94..000000000 --- a/numpy/f2py/tests/array_from_pyobj/setup.py +++ /dev/null @@ -1,25 +0,0 @@ -import os -def configuration(parent_name='',top_path=None): - from numpy.distutils.misc_util import Configuration - - config = Configuration('array_from_pyobj',parent_name,top_path) - #import numpy.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 numpy.distutils.core import setup - setup(configuration=configuration) |