[Zope-Checkins] CVS: Zope3 - stupid_build.py:1.1.2.3

Fred Drake Jr fdrake@acm.org
Wed, 28 Nov 2001 13:53:55 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv1371

Modified Files:
      Tag: Zope-3x-branch
	stupid_build.py 
Log Message:
Slightly different way to run the setup.py scripts; this only runs each once,
and avoids problems with quoting arguments on Unix (quoting is always a
problem on some other operating systems!).


=== Zope3/stupid_build.py 1.1.2.2 => 1.1.2.3 ===
     if 'setup.py' in names:
         setup_files.append(dirname + os.sep + 'setup.py')
-        
+
 cwd = os.getcwd()
 os.path.walk(cwd, visit, setup_files)
 for file in setup_files:
     print "Building extensions in %s" % file
     p = file.split('/')[:-1]
     os.chdir('/'.join(p))
-    os.system(executable + ' ' + file + ' build_ext -i')
-    os.system(executable + ' ' + file + ' clean')
+    os.spawnl(os.P_WAIT, executable, executable, file,
+              'build_ext', '-i', 'clean')
     print