Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install script for Guillotina
#!/bin/bash
# Adding postgres and python 3 to our package sources
sudo su -c "echo \"deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.6\" > /etc/apt/sources.list.d/postgresql.list"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo add-apt-repository ppa:jonathonf/python-3.6 -y
sudo apt-get update -y
# Install python 3.6 dependencies
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl \
python-imaging python-pyrex python-pyside.qtopengl idle-python3.6 python3.6 \
qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test \
libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 \
python-dev python3.6-dev libssl-dev -y
sudo easy_install greenlet
sudo easy_install gevent
# Install postgres 9.6
sudo apt-get install -y postgresql-9.6
# Start postgres 9.6
sudo service postgres restart
# Adding guillotina user and database
sudo -u postgres createuser guillotina
sudo -u postgres createdb guillotina
sudo -u postgres psql -c "alter user guillotina with encrypted password 'guillotina'"
# Install pip
if [ ! -e "pip" ]; then \
sudo apt-get install python-pip -y
fi
# Install virtualenv
if [ -z $(which virtualenv) ]; then \
sudo pip install virtualenv
fi
# Create virtualenv for project
if [ ! -e "bin/pip" ]; then \
virtualenv --python python3.6 .
fi
# nstall guillotina:
./bin/pip install guillotina
# Generate configuration file(requires cookie cutter):
./bin/pip install cookiecutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.