[Numpy-svn] r4057 - in branches/numpy.scons: . numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Thu Sep 20 03:33:37 CDT 2007


Author: cdavid
Date: 2007-09-20 03:33:24 -0500 (Thu, 20 Sep 2007)
New Revision: 4057

Modified:
   branches/numpy.scons/
   branches/numpy.scons/numpy/distutils/command/scons.py
Log:
Now, scons is launched for each scons scripts added by add_sconscript


Property changes on: branches/numpy.scons
___________________________________________________________________
Name: bzr:revision-info
   - timestamp: 2007-09-20 17:19:10.516000032 +0900
committer: david <david@david-laptop>
properties: 
	branch-nick: numpy.scons

   + timestamp: 2007-09-20 17:26:41.709000111 +0900
committer: david <david@david-laptop>
properties: 
	branch-nick: numpy.scons

Name: bzr:file-ids
   - numpy/scons_fake	scons_fake-20070920081521-unftng09muypbx5t-1
numpy/scons_fake/setup.py	setup.py-20070920081521-unftng09muypbx5t-2
numpy/distutils/numpy_distribution.py	numpy_distribution.p-20070920081526-b24h80xbm48z2tfx-1

   + numpy/scons_fake/SConstruct	sconstruct-20070920082558-qarsz8evm38aeo1q-1

Name: bzr:revision-id:v3-trunk0
   - 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z

   + 3737 david@david-laptop-20070920080908-n8pj8vmszdir3zoa
3738 david@david-laptop-20070920081509-58kkojgmml3t7jxs
3739 david@david-laptop-20070920081910-phlk1ujthksgpm0z
3740 david@david-laptop-20070920082641-bdhrt6eafeoli50i


Modified: branches/numpy.scons/numpy/distutils/command/scons.py
===================================================================
--- branches/numpy.scons/numpy/distutils/command/scons.py	2007-09-20 08:33:02 UTC (rev 4056)
+++ branches/numpy.scons/numpy/distutils/command/scons.py	2007-09-20 08:33:24 UTC (rev 4057)
@@ -8,8 +8,16 @@
         pass
 
     def finalize_options(self):
-        pass
+        if self.distribution.has_scons_scripts():
+            print "Got it: scons scripts are %s" % self.distribution.scons_scripts
+            self.scons_scripts = self.distribution.scons_scripts
 
     def run(self):
-        pass
-            
+        # XXX: when a scons script is missing, scons only prints warnings, and
+        # does not return a failure (status is 0). We have to detect this from
+        # distutils (this cannot work for recursive scons builds...)
+        for i in self.scons_scripts:
+            cmd = "scons -f " + i + ' -I. '
+            import os
+            st = os.system(cmd)
+            print "status is %d" % st



More information about the Numpy-svn mailing list