Update pip3

This commit is contained in:
Raul Marin 2019-10-22 19:48:00 +02:00
parent d1eb740a00
commit 9248ce76bd

View File

@ -25,7 +25,7 @@ script:
- sudo apt-get install -y --allow-unauthenticated postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION-scripts postgis
# For pre12, install plpython2. For PG12 install plpython3
- sudo apt-get install -y python python-pip python3 python3-pip
- if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo pip install redis; sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION; else sudo pip3 install pip3; sudo pip3 install setuptools; sudo pip3 install redis; sudo apt-get install -y postgresql-plpython3-12; fi;
- if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo pip install redis; sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION; else sudo pip3 install pip; sudo pip3 install setuptools; sudo pip3 install redis; sudo apt-get install -y postgresql-plpython3-12; fi;
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
- sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password