[Numpy-svn] r4134 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Tue Sep 25 10:42:12 CDT 2007


Author: cookedm
Date: 2007-09-25 10:41:49 -0500 (Tue, 25 Sep 2007)
New Revision: 4134

Modified:
   trunk/numpy/distutils/ccompiler.py
Log:
Inject our numpy.distutils.ccompiler.gen_lib_options into the various
distutils.*compiler modules (esp. msvccompiler)


Modified: trunk/numpy/distutils/ccompiler.py
===================================================================
--- trunk/numpy/distutils/ccompiler.py	2007-09-25 15:02:33 UTC (rev 4133)
+++ trunk/numpy/distutils/ccompiler.py	2007-09-25 15:41:49 UTC (rev 4134)
@@ -384,6 +384,14 @@
     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)



More information about the Numpy-svn mailing list