|
a/setup-common.bash |
|
b/setup-common.bash |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
|
2 |
|
3 |
#
|
3 |
#
|
4 |
# Install everything (python) into a virtual environment.
|
4 |
# Install everything (python) into a virtual environment.
|
5 |
# Maybe not important for sandboxes, but important locally.
|
5 |
# Important in sandboxes to force Python 2.6. Important
|
|
|
6 |
# locally to keep base installs clean.
|
6 |
#
|
7 |
#
|
7 |
|
8 |
|
8 |
echo '# installing base tools'
|
9 |
echo '# installing base tools'
|
9 |
sudo easy_install -U setuptools
|
10 |
sudo easy_install-2.6 -U setuptools
|
10 |
|
11 |
|
11 |
echo
|
12 |
echo
|
12 |
echo '# setting up a virtual environment'
|
13 |
echo '# setting up a virtual environment'
|
13 |
sudo easy_install -U virtualenv
|
14 |
sudo easy_install-2.6 -U virtualenv
|
14 |
virtualenv --no-site-packages sandbox-env
|
15 |
virtualenv --no-site-packages sandbox-env
|
15 |
. sandbox-env/bin/activate
|
16 |
. sandbox-env/bin/activate
|
|
|
17 |
|
|
|
18 |
# from here on, everything is using Python2.6 from sandbox-env
|
16 |
|
19 |
|
17 |
echo
|
20 |
echo
|
18 |
echo '# installing turbogears'
|
21 |
echo '# installing turbogears'
|
19 |
easy_install ipython
|
22 |
easy_install ipython
|
20 |
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
|
23 |
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
|
21 |
easy_install beautifulsoup
|
24 |
easy_install beautifulsoup
|
22 |
|
25 |
|
23 |
#
|
26 |
#
|
24 |
# Install _our_ code.
|
27 |
# Install _our_ code.
|
25 |
#
|
28 |
#
|
26 |
echo
|
29 |
# echo
|
27 |
echo '# cloning forge repo'
|
30 |
# echo '# cloning forge repo'
|
28 |
git clone ssh://engr.geek.net/forge
|
31 |
# git clone ssh://gitosis@engr.geek.net/forge
|
|
|
32 |
# cd forge
|
|
|
33 |
#
|
|
|
34 |
# This already happened just to get this file to run;
|
|
|
35 |
# now assume we run it in-place.
|
29 |
|
36 |
|
30 |
|
37 |
|
31 |
#
|
38 |
#
|
32 |
# Install all our (formal) dependencies.
|
39 |
# Install all our (formal) dependencies.
|
33 |
#
|
40 |
#
|
34 |
cd forge
|
|
|
35 |
|
41 |
|
36 |
echo
|
42 |
echo
|
37 |
echo '# installing pyforge dependencies'
|
43 |
echo '# installing pyforge dependencies'
|
38 |
cd pyforge
|
44 |
cd pyforge
|
39 |
python setup.py develop
|
45 |
python setup.py develop
|