[Checkins] SVN: zc.ngi/trunk/bootstrap.py Updated to current bootstrap.py

Jim Fulton jim at zope.com
Tue Jan 30 14:30:33 EST 2007


Log message for revision 72263:
  Updated to current bootstrap.py

Changed:
  U   zc.ngi/trunk/bootstrap.py

-=-
Modified: zc.ngi/trunk/bootstrap.py
===================================================================
--- zc.ngi/trunk/bootstrap.py	2007-01-30 18:58:05 UTC (rev 72262)
+++ zc.ngi/trunk/bootstrap.py	2007-01-30 19:30:32 UTC (rev 72263)
@@ -31,14 +31,18 @@
 
 import pkg_resources
 
+cmd = 'from setuptools.command.easy_install import main; main()'
+if sys.platform == 'win32':
+    cmd = '"%s"' % cmd # work around spawn lamosity on windows
+
 ws = pkg_resources.working_set
 assert os.spawnle(
     os.P_WAIT, sys.executable, sys.executable,
-    '-c', 'from setuptools.command.easy_install import main; main()',
-    '-mqNxd', tmpeggs, 'zc.buildout',
-    {'PYTHONPATH':
-     ws.find(pkg_resources.Requirement.parse('setuptools')).location
-     },
+    '-c', cmd, '-mqNxd', tmpeggs, 'zc.buildout',
+    dict(os.environ,
+         PYTHONPATH=
+         ws.find(pkg_resources.Requirement.parse('setuptools')).location
+         ),
     ) == 0
 
 ws.add_entry(tmpeggs)



More information about the Checkins mailing list