diff options
author | cookedm <cookedm@localhost> | 2007-09-25 15:41:49 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-09-25 15:41:49 +0000 |
commit | 0d9ad16b305a3f2e2e662a8dc93775d1e7b7ca22 (patch) | |
tree | 65d498f62821880a0d1f61bdf872cb968af26bf9 /numpy/distutils | |
parent | 703a49e1958aaceb7e4585e98a694e151204143e (diff) | |
download | numpy-0d9ad16b305a3f2e2e662a8dc93775d1e7b7ca22.tar.gz |
Inject our numpy.distutils.ccompiler.gen_lib_options into the various
distutils.*compiler modules (esp. msvccompiler)
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/ccompiler.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 882a53570..ebf2af479 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -384,6 +384,14 @@ def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries): return lib_opts ccompiler.gen_lib_options = gen_lib_options +# Also fix up the various compiler modules, which do +# from distutils.ccompiler import gen_lib_options +# Don't bother with mwerks, as we don't support Classic Mac. +for _cc in ['bcpp', 'cygwinc', 'emxc', 'unixc']: + _m = __import__('distutils.'+_cc+'compiler') + setattr(getattr(_m, _cc+'compiler'), 'gen_lib_options', + gen_lib_options) + _distutils_gen_preprocess_options = gen_preprocess_options def gen_preprocess_options (macros, include_dirs): include_dirs = quote_args(include_dirs) |