Skip to content

Commit

Permalink
Merge pull request #2 from navetcph/master
Browse files Browse the repository at this point in the history
fixingup the install script for ubuntu
  • Loading branch information
rethore committed May 27, 2015
2 parents 86e8768 + 0198f05 commit eb5fd93
Showing 1 changed file with 20 additions and 29 deletions.
49 changes: 20 additions & 29 deletions install_all.sh
Original file line number Diff line number Diff line change
@@ -1,48 +1,39 @@
#!/bin/bash

ROOT=$(pwd)

if [ ! -x "$(type -p virtualenv)" ]; then
echo 'INSTALL Virtualenv'
sudo easy_install virtualenv
fi

echo 'INSTALL own TOPFARM virtual environment'
virtualenv topfarmv
. topfarmv/bin/activate
echo 'INSTALL OPENMDAO'
mkdir $ROOT/topfarmv
mkdir $ROOT/topfarmv/src
SRC=$ROOT/topfarmv/src

pip install pip --upgrade
pip install numpy
pip install scipy

echo 'INSTALL OPENMDAO'
mkdir topfarmv/src
cd topfarmv/src
git clone https://github.com/OpenMDAO/OpenMDAO-Framework.git
cd OpenMDAO-Framework
git checkout 0.10.3.2
./go-openmdao-dev.py
cd ..
cd $SRC
curl http://openmdao.org/releases/0.10.3.2/go-openmdao-0.10.3.2.py | python2
ln -s $SRC/openmdao-0.10.3.2/bin/activate $ROOT/topfarmv/activate
. $ROOT/topfarmv/activate

cd $SRC
echo 'INSTALL FUSED-Wake'
git clone http://www.github.com/DTUWindEnergy/FUSED-Wake.git
cd FUSED-Wake/gclarsen
cd $SRC/FUSED-Wake/gclarsen
python setup.py install
cd ..
cd py4we
python setup.py install
cd ../../..

cd $SRC/FUSED-Wake/py4we
python setup.py install

cd $SRC
echo 'INSTALL FUSED-Wind + TOPFARM'
pip install -r http://raw.githubusercontent.com/DTUWindEnergy/TOPFARM/master/remote_install.txt

echo "Did something go wrong in the installation process? Then post an issue about it on https://github.com/DTUWindEnergy/TOPFARM/issues"

echo FUSED-Wind has been installed in editable mode in $(pwd)/topfarmv/src/fusedwind
echo FUSED-Wake has been installed in editable mode in $(pwd)/topfarmv/src/fusedwake
echo TOPFARM has been installed in editable mode in $(pwd)/topfarmv/src/topfarm
echo FUSED-Wind has been installed in editable mode in $ROOT/topfarmv/src/fusedwind
echo FUSED-Wake has been installed in editable mode in $ROOT/topfarmv/src/fusedwake
echo TOPFARM has been installed in editable mode in $ROOT/topfarmv/src/topfarm

echo 'To use TOPFARM you first need to activate the virtual environment:'
echo '$ . topfarmv/bin/activate'

echo '. $ROOT/topfarmv/activate'
ln -s $SRC/openmdao-0.10.3.2/src/* $SRC/
cd $ROOT

0 comments on commit eb5fd93

Please sign in to comment.