1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-21 03:02:09 +00:00
This commit is contained in:
Bill Cromie 2017-01-30 23:26:46 +00:00 committed by GitHub
commit b4a8028019

View File

@ -15,9 +15,23 @@ apt_install build-essential libssl-dev libffi-dev python3-dev
# Install other Python 3 packages used by the management daemon. # Install other Python 3 packages used by the management daemon.
# The first line is the packages that Josh maintains himself! # 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. # NOTE: email_validator is repeated in setup/questions.sh, so please keep the versions synced.
# 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 \ hide_output pip3 install --upgrade \
rtyaml "email_validator>=1.0.0" "free_tls_certificates>=0.1.3" "exclusiveprocess" \ rtyaml "email_validator>=1.0.0" "free_tls_certificates>=0.1.3" "exclusiveprocess" \
"idna>=2.0.0" "cryptography>=1.0.2" boto psutil "idna>=2.0.0" "cryptography>=1.7.1" boto psutil
# duplicity uses python 2 so we need to get the python 2 package of boto to have backups to S3. # duplicity uses python 2 so we need to get the python 2 package of boto to have backups to S3.
# boto from the Ubuntu package manager is too out-of-date -- it doesn't support the newer # boto from the Ubuntu package manager is too out-of-date -- it doesn't support the newer