From 26ce972cea05bf75e21d1c7443b87754e7a174e2 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Thu, 31 May 2012 11:39:55 -0400 Subject: [PATCH] adding brew-formulas, updating dev env script --- brew-formulas.txt | 9 +++++++++ create-dev-env.sh | 34 ++++++++++++++++++++++------------ 2 files changed, 31 insertions(+), 12 deletions(-) create mode 100644 brew-formulas.txt diff --git a/brew-formulas.txt b/brew-formulas.txt new file mode 100644 index 0000000000..5f76861eda --- /dev/null +++ b/brew-formulas.txt @@ -0,0 +1,9 @@ +readline +sqlite +gdbm +pkg-config +gfortran +mercurial +python +yuicompressor +node diff --git a/create-dev-env.sh b/create-dev-env.sh index 1b3b932dd5..1b3c272bb3 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -41,7 +41,7 @@ RUBY_VER="1.9.3" NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" LOG="/var/tmp/install.log" -BREW_PKGS="readline sqlite gdbm pkg-config gfortran mercurial python yuicompressor node" +BREW_PKGS="$BASE/mit/brew-formulas.txt" APT_PKGS="curl git mercurial python-virtualenv build-essential python-dev gfortran liblapack-dev libfreetype6-dev libpng12-dev libxml2-dev libxslt-dev yui-compressor coffeescript" if [[ $EUID -eq 0 ]]; then @@ -92,6 +92,10 @@ cat</dev/null || { output "Installing $pkg" brew install $pkg >>$LOG @@ -151,16 +155,7 @@ case `uname -s` in exit 1 ;; esac -output "Installing rvm and ruby" -curl -sL get.rvm.io | bash -s stable -source $RUBY_DIR/scripts/rvm -rvm install $RUBY_VER -virtualenv "$PYTHON_DIR" -source $PYTHON_DIR/bin/activate -output "Installing ruby packages" -gem install --version '0.8.3' rake -gem install --version '3.1.15' sass -gem install --version '1.3.6' bourbon + cd "$BASE" output "Cloning mitx, askbot and data repos" if [[ -d "$BASE/mitx" ]]; then @@ -176,6 +171,21 @@ if [[ -d "$BASE/data" ]]; then fi hg clone ssh://hg-content@gp.mitx.mit.edu/data >>$LOG + +output "Installing rvm and ruby" +curl -sL get.rvm.io | bash -s stable +source $RUBY_DIR/scripts/rvm +rvm install $RUBY_VER +virtualenv "$PYTHON_DIR" +source $PYTHON_DIR/bin/activate +output "Installing gem bundler" +gem install bundler +output "Installing ruby packages" +cd $BASE/mitx +bundle install + +cd $BASE + if [[ -n $compile ]]; then output "Downloading numpy and scipy" curl -sL -o numpy.tar.gz http://downloads.sourceforge.net/project/numpy/NumPy/${NUMPY_VER}/numpy-${NUMPY_VER}.tar.gz