Skip to content

Commit

Permalink
Update to newest bootstrap version
Browse files Browse the repository at this point in the history
  • Loading branch information
jukart committed Jun 7, 2007
1 parent 4e850bc commit ad23f74
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bootstrap.py
Expand Up @@ -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':
Expand All @@ -50,3 +53,4 @@
import zc.buildout.buildout
zc.buildout.buildout.main(sys.argv[1:] + ['bootstrap'])
shutil.rmtree(tmpeggs)

0 comments on commit ad23f74

Please sign in to comment.