Commit 0497f929 authored by tarek's avatar tarek

bootstraping.py -> bootstrapping.py

--HG--
branch : distribute
extra : rebase_source : b54a39a7e7f17f3275d62d29da37de0776fb7ee3
parent ec0118e5
...@@ -40,20 +40,20 @@ are available at the PyPI page and here : ...@@ -40,20 +40,20 @@ are available at the PyPI page and here :
http://bitbucket.org/tarek/distribute/downloads. http://bitbucket.org/tarek/distribute/downloads.
It can be installed using easy_install or pip, with the source tarball, with the It can be installed using easy_install or pip, with the source tarball, with the
eggs distribution, or using the ``bootstraping.py`` script provided online. eggs distribution, or using the ``bootstrapping.py`` script provided online.
``bootstraping.py`` is the simplest and preferred way on all systems. ``bootstrapping.py`` is the simplest and preferred way on all systems.
bootstraping.py bootstrapping.py
=============== ================
Download ``bootstraping.py`` and execute it, using the Python interpreter of Download ``bootstrapping.py`` and execute it, using the Python interpreter of
your choice. your choice.
If your shell has the `wget` programm you can do:: If your shell has the `wget` programm you can do::
$ wget http://bitbucket.org/tarek/distribute/downloads/bootstraping.py $ wget http://bitbucket.org/tarek/distribute/downloads/bootstrapping.py
$ python bootstraping.py $ python bootstrapping.py
easy_install or pip easy_install or pip
=================== ===================
...@@ -117,7 +117,7 @@ Windows ...@@ -117,7 +117,7 @@ Windows
------- -------
Don't install Distribute trying to execute the egg, because it's aimed to Don't install Distribute trying to execute the egg, because it's aimed to
sh-based shells. Instead, use the ``bootstraping.py`` method, that will sh-based shells. Instead, use the ``bootstrapping.py`` method, that will
download the egg for you, then install the egg. download the egg for you, then install the egg.
--------------------------- ---------------------------
......
...@@ -2,8 +2,8 @@ import urllib2 ...@@ -2,8 +2,8 @@ import urllib2
import sys import sys
import os import os
if os.path.exists('bootstraping.py'): if os.path.exists('bootstrapping.py'):
print 'bootstraping.py exists in the current dir, aborting' print 'bootstrapping.py exists in the current dir, aborting'
sys.exit(2) sys.exit(2)
print '**** Starting Test' print '**** Starting Test'
...@@ -14,13 +14,13 @@ if is_jython: ...@@ -14,13 +14,13 @@ if is_jython:
import subprocess import subprocess
print 'Downloading bootstrap' print 'Downloading bootstrap'
file = urllib2.urlopen('http://nightly.ziade.org/bootstraping.py') file = urllib2.urlopen('http://nightly.ziade.org/bootstrapping.py')
f = open('bootstraping.py', 'w') f = open('bootstrapping.py', 'w')
f.write(file.read()) f.write(file.read())
f.close() f.close()
# running it # running it
args = [sys.executable] + ['bootstraping.py'] args = [sys.executable] + ['bootstrapping.py']
if is_jython: if is_jython:
res = subprocess.call(args) res = subprocess.call(args)
else: else:
...@@ -28,7 +28,7 @@ else: ...@@ -28,7 +28,7 @@ else:
if res != 0: if res != 0:
print '**** Test failed, please send me the output at tarek@ziade.org' print '**** Test failed, please send me the output at tarek@ziade.org'
os.remove('bootstraping.py') os.remove('bootstrapping.py')
sys.exit(2) sys.exit(2)
# now checking if Distribute is installed # now checking if Distribute is installed
...@@ -71,5 +71,5 @@ try: ...@@ -71,5 +71,5 @@ try:
finally: finally:
if os.path.exists(script_name): if os.path.exists(script_name):
os.remove(script_name) os.remove(script_name)
os.remove('bootstraping.py') os.remove('bootstrapping.py')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment