Created
January 11, 2017 14:27
Revisions
-
instaBOT created this gist
Jan 11, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ #!/usr/bin/env bash ######################################################################## # Setup PostgreSQL+Python 3 client development environment ######################################################################## cd set -e echo "Setting up PostgreSQL APT repository..." wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list echo "Refreshing and upgrading packages..." sudo apt-get update sudo apt-get upgrade -y sudo apt-get dist-upgrade -y echo "Installing packages..." sudo apt-get install -y \ build-essential \ libpq-dev \ postgresql-client-9.6 \ python3 \ python3-dev \ echo "Installing pip..." wget -q -O - https://bootstrap.pypa.io/get-pip.py | sudo python3 echo "Installing Python requirements..." sudo pip3 install \ ipython \ psycopg2 \