Changeset 11860 for main/waeup.kwarapoly
- Timestamp:
- 20 Oct 2014, 14:38:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/bootstrap.py
r10126 r11860 19 19 """ 20 20 21 import os, shutil, sys, tempfile 21 import os 22 import shutil 23 import sys 24 import tempfile 25 22 26 from optparse import OptionParser 23 27 … … 32 36 Python that you want bin/buildout to use. 33 37 34 Note that by using -- setup-source and --download-base to point to35 local resources, you can keepthis script from going over the network.38 Note that by using --find-links to point to local resources, you can keep 39 this script from going over the network. 36 40 ''' 37 41 … … 49 53 "even if they are alphas or betas.")) 50 54 parser.add_option("-c", "--config-file", 51 52 55 help=("Specify the path to the buildout configuration " 56 "file to be used.")) 53 57 parser.add_option("-f", "--find-links", 54 58 help=("Specify a URL to search for buildout releases")) 55 59 56 60 … … 62 66 to_reload = False 63 67 try: 64 import pkg_resources, setuptools 68 import pkg_resources 69 import setuptools 65 70 if not hasattr(pkg_resources, '_distribute'): 66 71 to_reload = True … … 74 79 from urllib2 import urlopen 75 80 76 exec(urlopen('http://python-distribute.org/distribute_setup.py').read(), ez) 81 exec(urlopen( 82 'http://downloads.buildout.org/2.1/distribute_setup.py').read(), ez) 77 83 setup_args = dict(to_dir=tmpeggs, download_delay=0, no_fake=True) 78 84 ez['use_setuptools'](**setup_args) … … 90 96 # Install buildout 91 97 92 ws 98 ws = pkg_resources.working_set 93 99 94 100 cmd = [sys.executable, '-c', … … 114 120 import setuptools.package_index 115 121 _final_parts = '*final-', '*final' 122 116 123 def _final_version(parsed_version): 117 124 for part in parsed_version:
Note: See TracChangeset for help on using the changeset viewer.