[Numpy-svn] r4458 - branches/numpy.scons/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Thu Nov 15 04:06:33 CST 2007


Author: cdavid
Date: 2007-11-15 04:06:28 -0600 (Thu, 15 Nov 2007)
New Revision: 4458

Modified:
   branches/numpy.scons/numpy/distutils/misc_util.py
Log:
hack to correctly initialize scons command

Modified: branches/numpy.scons/numpy/distutils/misc_util.py
===================================================================
--- branches/numpy.scons/numpy/distutils/misc_util.py	2007-11-15 06:00:42 UTC (rev 4457)
+++ branches/numpy.scons/numpy/distutils/misc_util.py	2007-11-15 10:06:28 UTC (rev 4458)
@@ -1203,11 +1203,17 @@
                                     full_source_files))
             self.warn('distutils distribution has been initialized,'\
                       ' it may be too late to add a subpackage '+ subpackage_name)
+            # XXX: we add a fake extension, to correctly initialize some
+            # options in distutils command.
+            dist.add_extension('', sources = [])
         else:
             self.scons_data.append((fullsconsname, 
                                     pre_hook, 
                                     post_hook,
                                     full_source_files))
+            # XXX: we add a fake extension, to correctly initialize some
+            # options in distutils command.
+            self.add_extension('', sources = [])
 
     def add_scripts(self,*files):
         """Add scripts to configuration.



More information about the Numpy-svn mailing list