You can clone with
A pure python script to download and install the distribute_setup and
matt wilkie <email@example.com>
sources = [
warning = '''\n
Usage: python %s GO
This script downloads and executes arbitrary code from the internet.
It is worth noting this could be extremely dangerous if one doesn't
have the expertise or bother to inspect the url-file before executing
At the time of this writing said arbitrary code is:
''' % (sys.argv)
for s in sources:
warning = warning + '\n\t %s' % s
if not len(sys.argv) > 1:
if not sys.argv == 'GO':
if sys.hexversion < 0x03000000:
from urllib2 import urlopen # python 2
from urllib.request import urlopen # python 3+
for src in sources:
print('\n %s \n %s \n' % ('-'*78, src))
f = urlopen(src).read()
**** Whups. an exception happened in "exec(f)" of %s.
**** Carrying on anyway,
**** but you should check to ensure it's not a real problem.
''' % sys.argv)
print('\n %s \n %s \n' % (src, '-'*78))
hmm, on a virgin python install the script needs to be run twice. The first time distribute installs and get-pip is skipped over. On the second get-pip works.
...interesting, on python3.2 it doesn't need to be run twice.