2019-05-03 16:52:53 -04:00
|
|
|
#!/bin/sh
|
2019-06-03 08:57:23 -07:00
|
|
|
set -e
|
2019-05-03 16:52:53 -04:00
|
|
|
|
|
|
|
pip install -U pip && \
|
|
|
|
cd /opt/swift && \
|
|
|
|
pip install -r requirements.txt && \
|
|
|
|
pip install -e .
|
|
|
|
|
|
|
|
cp doc/saio/bin/* $HOME/bin
|
|
|
|
chmod +x $HOME/bin/*
|
|
|
|
sed -i "s/bash/sh/g" $HOME/bin/*
|
|
|
|
sed -i "s/sudo //g" $HOME/bin/*
|
|
|
|
mkdir /root/tmp
|
|
|
|
echo "export PATH=${PATH}:$HOME/bin" >> $HOME/.shrc
|
|
|
|
echo "export PYTHON_EGG_CACHE=/root/tmp" >> $HOME/.shrc
|
|
|
|
echo "export ENV=$HOME/.shrc" >> $HOME/.profile
|
|
|
|
chmod +x $HOME/.shrc
|
|
|
|
chmod +x $HOME/.profile
|