Add some tests (#7)
[python-ant.git] / bootstrap
blob001fbefbaca44d85c766bfcd50739b371e8a75de
1 #!/bin/sh
2 # Take out the trash
3 echo "Taking out the trash..."
4 rm -rf virtualenv.py bootstrap.py bin develop-eggs eggs include lib parts .installed.cfg dist build downloads lib64 src/ant.egg-info docs/build docs/source/.buildinfo src/.coverage
6 # Fetch bootstrap files
7 echo "Fetching bootstrap scripts..."
8 wget -q https://raw.github.com/pypa/virtualenv/develop/virtualenv.py
9 wget -q http://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/bootstrap.py
11 # Create and activate isolated Python environment
12 echo "Creating isolated Python environment..."
13 python virtualenv.py --no-site-packages --distribute --prompt=\[ant\] .
14 rm -f *.tar.*
15 source bin/activate
17 # Let zc.buildout do it's thing
18 echo "Initializing buildout..."
19 python bootstrap.py -d
22 # Done
23 echo "All done. Go ahead and run buildout."