[Checkins] SVN: z3c.traverser/trunk/bootstrap.py Update to newest
bootstrap version
Jürgen Kartnaller
juergen at kartnaller.at
Thu Jun 7 07:44:11 EDT 2007
Log message for revision 76461:
Update to newest bootstrap version
Changed:
U z3c.traverser/trunk/bootstrap.py
-=-
Modified: z3c.traverser/trunk/bootstrap.py
===================================================================
--- z3c.traverser/trunk/bootstrap.py 2007-06-07 11:04:20 UTC (rev 76460)
+++ z3c.traverser/trunk/bootstrap.py 2007-06-07 11:44:10 UTC (rev 76461)
@@ -24,12 +24,15 @@
tmpeggs = tempfile.mkdtemp()
-ez = {}
-exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
- ).read() in ez
-ez['use_setuptools'](to_dir=tmpeggs, 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=tmpeggs, download_delay=0)
-import pkg_resources
+ import pkg_resources
cmd = 'from setuptools.command.easy_install import main; main()'
if sys.platform == 'win32':
@@ -50,3 +53,4 @@
import zc.buildout.buildout
zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
shutil.rmtree(tmpeggs)
+
More information about the Checkins
mailing list