Skip to content

Commit

Permalink
MAINT: Tee output to console and log file
Browse files Browse the repository at this point in the history
  • Loading branch information
richafrank committed Jul 7, 2016
1 parent ec4336f commit bd45bb0
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions vagrant_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ VAGRANT_LOG="/home/vagrant/vagrant.log"
# (grub-pc will complain that your boot device changed, probably
# due to something that vagrant did, and break your console)

echo "Obstructing updates to grub-pc..."
apt-mark hold grub-pc 2>&1 >> "$VAGRANT_LOG"
echo "Obstructing updates to grub-pc..." | tee -a "$VAGRANT_LOG"
apt-mark hold grub-pc 2>&1 | tee -a "$VAGRANT_LOG"

echo "Adding python apt repo..."
apt-add-repository -y ppa:fkrull/deadsnakes-python2.7 2>&1 >> "$VAGRANT_LOG"
echo "Updating apt-get caches..."
apt-get -y update 2>&1 >> "$VAGRANT_LOG"
echo "Adding python apt repo..." | tee -a "$VAGRANT_LOG"
apt-add-repository -y ppa:fkrull/deadsnakes-python2.7 2>&1 | tee -a "$VAGRANT_LOG"
echo "Updating apt-get caches..." | tee -a "$VAGRANT_LOG"
apt-get -y update 2>&1 | tee -a "$VAGRANT_LOG"

echo "Installing required system packages..."
apt-get -y install python2.7 python-dev g++ make libfreetype6-dev libpng-dev libopenblas-dev liblapack-dev gfortran pkg-config git 2>&1 >> "$VAGRANT_LOG"
echo "Installing required system packages..." | tee -a "$VAGRANT_LOG"
apt-get -y install python2.7 python-dev g++ make libfreetype6-dev libpng-dev libopenblas-dev liblapack-dev gfortran pkg-config git 2>&1 | tee -a "$VAGRANT_LOG"

echo "Installing ta-lib..."
echo "Installing ta-lib..." | tee -a "$VAGRANT_LOG"
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz --no-verbose -a "$VAGRANT_LOG"
tar -xvzf ta-lib-0.4.0-src.tar.gz 2>&1 >> "$VAGRANT_LOG"
tar -xvzf ta-lib-0.4.0-src.tar.gz 2>&1 | tee -a "$VAGRANT_LOG"
cd ta-lib/
./configure --prefix=/usr 2>&1 >> "$VAGRANT_LOG"
make 2>&1 >> "$VAGRANT_LOG"
sudo make install 2>&1 >> "$VAGRANT_LOG"
./configure --prefix=/usr 2>&1 | tee -a "$VAGRANT_LOG"
make 2>&1 | tee -a "$VAGRANT_LOG"
sudo make install 2>&1 | tee -a "$VAGRANT_LOG"
cd ../

echo "Installing pip and setuptools..."
wget https://bootstrap.pypa.io/get-pip.py 2>&1 >> "$VAGRANT_LOG"
python get-pip.py 2>&1 >> "$VAGRANT_LOG"
echo "Installing zipline python dependencies..."
/vagrant/etc/ordered_pip.sh /vagrant/etc/requirements.txt 2>&1 >> "$VAGRANT_LOG"
echo "Installing zipline extra python dependencies..."
pip install -r /vagrant/etc/requirements_dev.txt -r /vagrant/etc/requirements_blaze.txt 2>&1 >> "$VAGRANT_LOG"
echo "Installing zipline package itself..."
echo "Installing pip and setuptools..." | tee -a "$VAGRANT_LOG"
wget https://bootstrap.pypa.io/get-pip.py 2>&1 | tee -a "$VAGRANT_LOG"
python get-pip.py 2>&1 >> "$VAGRANT_LOG" | tee -a "$VAGRANT_LOG"
echo "Installing zipline python dependencies..." | tee -a "$VAGRANT_LOG"
/vagrant/etc/ordered_pip.sh /vagrant/etc/requirements.txt 2>&1 | tee -a "$VAGRANT_LOG"
echo "Installing zipline extra python dependencies..." | tee -a "$VAGRANT_LOG"
pip install -r /vagrant/etc/requirements_dev.txt -r /vagrant/etc/requirements_blaze.txt 2>&1 | tee -a "$VAGRANT_LOG"
echo "Installing zipline package itself..." | tee -a "$VAGRANT_LOG"
find /vagrant/ -type f -name '*.c' -exec rm {} +
pip install -e /vagrant[all] 2>&1 >> "$VAGRANT_LOG"
echo "Finished!"
pip install -e /vagrant[all] 2>&1 | tee -a "$VAGRANT_LOG"
echo "Finished!" | tee -a "$VAGRANT_LOG"

0 comments on commit bd45bb0

Please sign in to comment.