~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/disable-setuptools-download.diff/python/ez_setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# This file was obtained from:
4
4
#   http://peak.telecommunity.com/dist/ez_setup.py
5
 
# on 2009/4/17.
 
5
# on 2011/1/21.
6
6
 
7
7
"""Bootstrap setuptools installation
8
8
 
19
19
This file can also be run as a script to install or upgrade setuptools.
20
20
"""
21
21
import sys
22
 
DEFAULT_VERSION = "0.6c9"
 
22
DEFAULT_VERSION = "0.6c11"
23
23
DEFAULT_URL     = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
24
24
 
25
25
md5_data = {
33
33
    'setuptools-0.6b4-py2.4.egg': '4cb2a185d228dacffb2d17f103b3b1c4',
34
34
    'setuptools-0.6c1-py2.3.egg': 'b3f2b5539d65cb7f74ad79127f1a908c',
35
35
    'setuptools-0.6c1-py2.4.egg': 'b45adeda0667d2d2ffe14009364f2a4b',
 
36
    'setuptools-0.6c10-py2.3.egg': 'ce1e2ab5d3a0256456d9fc13800a7090',
 
37
    'setuptools-0.6c10-py2.4.egg': '57d6d9d6e9b80772c59a53a8433a5dd4',
 
38
    'setuptools-0.6c10-py2.5.egg': 'de46ac8b1c97c895572e5e8596aeb8c7',
 
39
    'setuptools-0.6c10-py2.6.egg': '58ea40aef06da02ce641495523a0b7f5',
 
40
    'setuptools-0.6c11-py2.3.egg': '2baeac6e13d414a9d28e7ba5b5a596de',
 
41
    'setuptools-0.6c11-py2.4.egg': 'bd639f9b0eac4c42497034dec2ec0c2b',
 
42
    'setuptools-0.6c11-py2.5.egg': '64c94f3bf7a72a13ec83e0b24f2749b2',
 
43
    'setuptools-0.6c11-py2.6.egg': 'bfa92100bd772d5a213eedd356d64086',
36
44
    'setuptools-0.6c2-py2.3.egg': 'f0064bf6aa2b7d0f3ba0b43f20817c27',
37
45
    'setuptools-0.6c2-py2.4.egg': '616192eec35f47e8ea16cd6a122b7277',
38
46
    'setuptools-0.6c3-py2.3.egg': 'f181fa125dfe85a259c9cd6f1d7b78fa',
109
117
            "\n\n(Currently using %r)"
110
118
            ) % (version, e.args[0])
111
119
            sys.exit(2)
112
 
        else:
113
 
            del pkg_resources, sys.modules['pkg_resources']    # reload ok
114
 
            return do_download()
115
120
    except pkg_resources.DistributionNotFound:
116
 
        return do_download()
 
121
        pass
 
122
 
 
123
    del pkg_resources, sys.modules['pkg_resources']    # reload ok
 
124
    return do_download()
117
125
 
118
126
def download_setuptools(
119
127
    version=DEFAULT_VERSION, download_base=DEFAULT_URL, to_dir=os.curdir,
273
281
        update_md5(sys.argv[2:])
274
282
    else:
275
283
        main(sys.argv[1:])
276
 
 
277
 
 
278
 
 
279
 
 
280
 
 
281