Created
July 6, 2017 17:17
-
-
Save celianvdb/7969e194d4c1d9c78c5ff33cf3a53252 to your computer and use it in GitHub Desktop.
Test Fix for cuwo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
git clone https://github.com/matpow2/cuwo.git . | |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
# create run_pyenv.sh | |
echo '#!/usr/bin/env bash' > run_pyenv.sh | |
echo 'export PYENV_ROOT=${HOME}/.pyenv' >> run_pyenv.sh | |
echo 'if [ -d "${PYENV_ROOT}" ]; then' >> run_pyenv.sh | |
echo ' export PATH="${PYENV_ROOT}/bin:${PATH}"' >> run_pyenv.sh | |
echo ' eval "$(pyenv init -)"' >> run_pyenv.sh | |
echo 'fi' >> run_pyenv.sh | |
# create update.sh | |
echo '#!/usr/bin/env bash' > update.sh | |
echo 'cd "$(dirname "$0")"' >> update.sh | |
echo 'source run_pyenv.sh' >> update.sh | |
echo 'git pull' >> update.sh | |
echo 'python setup.py build_ext --inplace' >> update.sh | |
source run_pyenv.sh | |
CFLAGS=-I/usr/include/openssl \ | |
LDFLAGS=-L/usr/lib64 \ | |
pyenv update | |
pyenv install 3.4.1 --skip-existing | |
pyenv local 3.4.1 | |
pip install -r requirements.txt | |
python setup.py build_ext --inplace | |
chmod +x run_server.sh | |
chmod +x update.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment