-
-
Save dalitun/3976655224dfb210303b2430df827551 to your computer and use it in GitHub Desktop.
Install Python on CoreOS
This file contains hidden or 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
#!/bin/bash -uxe | |
VERSION=2.7.13.2713 | |
PACKAGE=ActivePython-${VERSION}-linux-x86_64-glibc-2.3.6-401785 | |
# make directory | |
mkdir -p /opt/bin | |
cd /opt | |
wget http://downloads.activestate.com/ActivePython/releases/${VERSION}/${PACKAGE}.tar.gz | |
tar -xzvf ${PACKAGE}.tar.gz | |
mv ${PACKAGE} apy && cd apy && ./install.sh -I /opt/python/ | |
ln -sf /opt/python/bin/easy_install /opt/bin/easy_install | |
ln -sf /opt/python/bin/pip /opt/bin/pip | |
ln -sf /opt/python/bin/python /opt/bin/python | |
ln -sf /opt/python/bin/python /opt/bin/python2 | |
ln -sf /opt/python/bin/virtualenv /opt/bin/virtualenv | |
pip install jinja2-cli | |
pip install pyyaml | |
ln -s /opt/python/bin/jinja2 /opt/bin/jinja2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment