diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2011-02-27 12:55:03 +0200 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2011-02-27 12:55:03 +0200 |
commit | 715b9c74f86cfeceb94cdd77b3080afa88e10688 (patch) | |
tree | 4f3b86a73f57e9698123e3ba5c637980fe1723b4 /numpy/f2py/tests/util.py | |
parent | d7ea62c3153fcf51e358b93a6aeb2be4f74c08e5 (diff) | |
download | numpy-715b9c74f86cfeceb94cdd77b3080afa88e10688.tar.gz |
Fix assumed shape support for routines that use modules. Improved .f2py_f2cmap messages.
Diffstat (limited to 'numpy/f2py/tests/util.py')
-rw-r--r-- | numpy/f2py/tests/util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/f2py/tests/util.py b/numpy/f2py/tests/util.py index 422d5965e..a5816b96f 100644 --- a/numpy/f2py/tests/util.py +++ b/numpy/f2py/tests/util.py @@ -106,6 +106,12 @@ def build_module(source_files, options=[], skip=[], only=[], module_name=None): shutil.copyfile(fn, dst) dst_sources.append(dst) + fn = os.path.join(os.path.dirname(fn), '.f2py_f2cmap') + if os.path.isfile(fn): + dst = os.path.join(d, os.path.basename(fn)) + if not os.path.isfile(dst): + shutil.copyfile(fn, dst) + # Prepare options if module_name is None: module_name = get_temp_module_name() |