diff options
author | Eric Jones <eric@enthought.com> | 2002-01-13 08:25:22 +0000 |
---|---|---|
committer | Eric Jones <eric@enthought.com> | 2002-01-13 08:25:22 +0000 |
commit | 941538268cefd76c0c8171c89ff7714cdf619f13 (patch) | |
tree | a99d255f34be5b3c89cdf3e9d4dcf00a6efeed64 /weave/inline_tools.py | |
parent | 6c49b9f81fb01ab4ef658a5acb4fe807b7cc4892 (diff) | |
download | numpy-941538268cefd76c0c8171c89ff7714cdf619f13.tar.gz |
* anydbm was causing fits across platforms. Now I think it mainly had to do with bugs in
dumbdbm with 2.x up to 2.2. I've included a cleaned up version of dumbdbm in weave to
prevent this from being an issue. Now catalogs always use this local version of dumbdbm.
* cleaned up helper test routines so that catalog backup/restore works more smoothly
* temporary files and directories are cleaned up a little better after testing.
* file builds are now done in the temporary directory to try and speed up the build process
on Unix machines with remote file systems for user directories. Probably not a big help.
Diffstat (limited to 'weave/inline_tools.py')
-rw-r--r-- | weave/inline_tools.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/weave/inline_tools.py b/weave/inline_tools.py index bde673afd..bae4c19bc 100644 --- a/weave/inline_tools.py +++ b/weave/inline_tools.py @@ -3,13 +3,13 @@ import sys,os import ext_tools import string -from catalog import catalog +import catalog import inline_info, cxx_info # not an easy way for the user_path_list to come in here. # the PYTHONCOMPILED environment variable offers the most hope. -function_catalog = catalog() +function_catalog = catalog.catalog() class inline_ext_function(ext_tools.ext_function): @@ -376,6 +376,7 @@ def compile_function(code,arg_names,local_dict,global_dict, **kw): # figure out where to store and what to name the extension module # that will contain the function. + #storage_dir = catalog.intermediate_dir() module_path = function_catalog.unique_module_name(code,module_dir) storage_dir, module_name = os.path.split(module_path) mod = inline_ext_module(module_name,compiler) @@ -394,7 +395,7 @@ def compile_function(code,arg_names,local_dict,global_dict, # add the extra "support code" needed by the function to the module. if support_code: mod.customize.add_support_code(support_code) - + # 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, |