Changeset 11854 for main


Ignore:
Timestamp:
20 Oct 2014, 14:34:00 (10 years ago)
Author:
Henrik Bettermann
Message:

Replace bootstrap.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/bootstrap.py

    r10140 r11854  
    1919"""
    2020
    21 import os, shutil, sys, tempfile
     21import os
     22import shutil
     23import sys
     24import tempfile
     25
    2226from optparse import OptionParser
    2327
     
    3236Python that you want bin/buildout to use.
    3337
    34 Note that by using --setup-source and --download-base to point to
    35 local resources, you can keep this script from going over the network.
     38Note that by using --find-links to point to local resources, you can keep
     39this script from going over the network.
    3640'''
    3741
     
    4953                        "even if they are alphas or betas."))
    5054parser.add_option("-c", "--config-file",
    51                    help=("Specify the path to the buildout configuration "
    52                          "file to be used."))
     55                  help=("Specify the path to the buildout configuration "
     56                        "file to be used."))
    5357parser.add_option("-f", "--find-links",
    54                    help=("Specify a URL to search for buildout releases"))
     58                  help=("Specify a URL to search for buildout releases"))
    5559
    5660
     
    6266to_reload = False
    6367try:
    64     import pkg_resources, setuptools
     68    import pkg_resources
     69    import setuptools
    6570    if not hasattr(pkg_resources, '_distribute'):
    6671        to_reload = True
     
    7479        from urllib2 import urlopen
    7580
    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)
    7783    setup_args = dict(to_dir=tmpeggs, download_delay=0, no_fake=True)
    7884    ez['use_setuptools'](**setup_args)
     
    9096# Install buildout
    9197
    92 ws  = pkg_resources.working_set
     98ws = pkg_resources.working_set
    9399
    94100cmd = [sys.executable, '-c',
     
    114120    import setuptools.package_index
    115121    _final_parts = '*final-', '*final'
     122
    116123    def _final_version(parsed_version):
    117124        for part in parsed_version:
Note: See TracChangeset for help on using the changeset viewer.