Parent: [048642] (diff)

Child: [4dca0b] (diff)

Download this file

setup-common.bash    69 lines (55 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#
# Install everything (python) into a virtual environment.
# Important in sandboxes to force Python 2.6. Important
# locally to keep base installs clean.
#
echo '# installing base tools'
sudo easy_install-2.6 -U setuptools
echo
echo '# setting up a virtual environment'
sudo easy_install-2.6 -U virtualenv
virtualenv --no-site-packages sandbox-env
. sandbox-env/bin/activate
# from here on, everything is using Python2.6 from sandbox-env
echo
echo '# installing turbogears'
easy_install ipython
easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
easy_install beautifulsoup
#
# Install _our_ code.
#
# echo
# echo '# cloning forge repo'
# git clone ssh://gitosis@engr.geek.net/forge
# cd forge
#
# This already happened just to get this file to run;
# now assume we run it in-place.
#
# Install all our (formal) dependencies.
#
echo
echo '# installing pyforge dependencies'
cd pyforge
python setup.py develop
cd ..
echo
echo '# installing Ming dependencies'
cd Ming
python setup.py develop
cd ..
echo
echo '# installing HelloForge dependencies'
cd HelloForge
python setup.py develop
cd ..
echo
echo '# downloading and untarring solr'
mkdir download install
cd download
wget http://apache.mirrors.tds.net/lucene/solr/1.4.0/apache-solr-1.4.0.tgz
cd ../install
tar xzf ../download/apache-solr-1.4.0.tgz
# Start up the server?