[Checkins] SVN: zc.buildout/trunk/dev.py Updated to work offline if
setuptools is in the path.
Jim Fulton
jim at zope.com
Thu Jul 5 08:55:28 EDT 2007
Log message for revision 77455:
Updated to work offline if setuptools is in the path.
Changed:
U zc.buildout/trunk/dev.py
-=-
Modified: zc.buildout/trunk/dev.py
===================================================================
--- zc.buildout/trunk/dev.py 2007-07-05 12:24:43 UTC (rev 77454)
+++ zc.buildout/trunk/dev.py 2007-07-05 12:55:28 UTC (rev 77455)
@@ -25,12 +25,15 @@
if not os.path.exists(d):
os.mkdir(d)
-ez = {}
-exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
- ).read() in ez
-ez['use_setuptools'](to_dir='eggs', download_delay=0)
+try:
+ import pkg_resources
+except ImportError:
+ ez = {}
+ exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
+ ).read() in ez
+ ez['use_setuptools'](to_dir='eggs', download_delay=0)
-import pkg_resources
+ import pkg_resources
os.spawnle(os.P_WAIT, sys.executable, sys.executable, 'setup.py',
'-q', 'develop', '-m', '-x', '-d', 'develop-eggs',
More information about the Checkins
mailing list