From 1c5f7ebce5993a5874ac363913f4adc4c66db23d Mon Sep 17 00:00:00 2001 From: Bill Cromie Date: Mon, 30 Jan 2017 18:26:36 -0500 Subject: [PATCH] adding steps that should fix broken systems and ensure that we can install in a clean 14.0.4.5 environment --- setup/management.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/setup/management.sh b/setup/management.sh index 2ae9f93b..2745fd71 100755 --- a/setup/management.sh +++ b/setup/management.sh @@ -15,7 +15,19 @@ apt_install build-essential libssl-dev libffi-dev python3-dev # Install other Python 3 packages used by the management daemon. # The first line is the packages that Josh maintains himself! # NOTE: email_validator is repeated in setup/questions.sh, so please keep the versions synced. -hide_output pip3 install --upgrade setuptools + +# the below fixes the issue with an older version of pip3 and setup tools +# breaking pip3 via a race condition +# see https://github.com/pypa/pip/issues/4253 +# and +# https://github.com/mail-in-a-box/mailinabox/issues/1086 + +# need to use hide output, because we have to re-install this. +hide_output apt-get install -y --reinstall python-pkg-resources +# ensure that we have a modern version of setuptools, distribute and pip3 first +hide_output python3 -m pip install --upgrade setuptools +hide_output python3 -m pip install --upgrade distribute +hide_output python3 -m pip install --upgrade pip hide_output pip3 install --upgrade \ rtyaml "email_validator>=1.0.0" "free_tls_certificates>=0.1.3" "exclusiveprocess" \