diff options
author | Fernando Perez <fperez@fperez.org> | 2005-06-17 15:22:14 +0000 |
---|---|---|
committer | Fernando Perez <fperez@fperez.org> | 2005-06-17 15:22:14 +0000 |
commit | c9b58a66de068afbb2329ffe401ac9745dcf2416 (patch) | |
tree | ce2ddfa9d0416766544bc693f3784d38c6c05a42 /weave/inline_tools.py | |
parent | 2ff0186a9874cbaf93eb4e209698c6cb978c6160 (diff) | |
download | numpy-c9b58a66de068afbb2329ffe401ac9745dcf2416.tar.gz |
Replace non-descript 'None' or 'unix' printed message when recompiling with an explicit '<weave: compiling>' one, issued at the proper location.
Diffstat (limited to 'weave/inline_tools.py')
-rw-r--r-- | weave/inline_tools.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/weave/inline_tools.py b/weave/inline_tools.py index 4a7f44e19..1778d0963 100644 --- a/weave/inline_tools.py +++ b/weave/inline_tools.py @@ -11,7 +11,6 @@ import common_info function_catalog = catalog.catalog() - class inline_ext_function(ext_tools.ext_function): # Some specialization is needed for inline extension functions def function_declaration_code(self): @@ -432,7 +431,11 @@ def compile_function(code,arg_names,local_dict,global_dict, # add the extra headers needed by the function to the module. for header in headers: mod.customize.add_header(header) - + + # it's nice to let the users know when anything gets compiled, as the + # slowdown is very noticeable. + print '<weave: compiling>' + # compile code in correct location, with the given compiler and verbosity # setting. All input keywords are passed through to distutils mod.compile(location=storage_dir,compiler=compiler, @@ -447,4 +450,3 @@ def compile_function(code,arg_names,local_dict,global_dict, finally: del sys.path[0] return func - |