mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 05:15:44 +08:00
MAINT: Tee output to console and log file
This commit is contained in:
+23
-23
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user