1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00
mailinabox/setup
Joshua Tauberer 32d6728dc9 fix pip breaking due to setuptools/pip/cryptography problem
pip<6.1 + setuptools>=34 have a problem with packages that
try to update setuptools during installation, like cryptography.
See https://github.com/pypa/pip/issues/4253. The Ubuntu 14.04
package versions are pip 1.5.4 and setuptools 3.3. When we
install cryptography under those versions, it tries to update
setuptools to version 34, which became available about 10 days
ago, and then pip gets permanently broken with errors like
"ImportError: No module named 'packaging'".

The easiest work-around on systems that aren't already broken is
to upgrade pip and setuptools individually before we install any
package that tries to update setuptools.

Also try to detect a broken system and forcibly remove setuptools
first before trying to install/upgrade pip.

fixes #1080, fixes #1081, fixes #1086
see #1083
see https://discourse.mailinabox.email/t/error-with-pip-and-python/1880
see https://discourse.mailinabox.email/t/error-installing-mib/1875
2017-02-01 10:29:28 -05:00
..
bootstrap.sh v0.21b 2016-12-05 17:36:11 -05:00
dkim.sh use "127.0.0.1" throughout rather than mixing use of an IP address and "localhost" 2016-05-06 09:10:38 -04:00
dns.sh use /dev/urandom for DNSSEC key generation, fixes #596, partially reverts #115 (69f0e1d07a) 2015-11-19 07:00:33 -05:00
firstuser.sh suppress some status output regarding new automatic aliases on first installation 2015-08-19 16:30:32 -04:00
functions.sh silence all of the installing/already installed package messages on installation 2015-08-19 15:58:35 -04:00
mail-dovecot.sh Configured Dovecot to log into its own logfile 2016-06-06 08:21:44 -04:00
mail-postfix.sh disable nested checker checks (#972) 2016-10-18 14:15:33 -04:00
mail-users.sh Dovecot LMTP accepted all mail regardless of whether destination was a user, broken by ae8cd4ef, fixes #852 2016-06-02 08:05:34 -04:00
management.sh fix pip breaking due to setuptools/pip/cryptography problem 2017-02-01 10:29:28 -05:00
migrate.py make the system SSL certificate a symlink so we never have to replace a certificate file, and flatten the directory structure of user-installed certificates 2015-11-29 02:02:01 +00:00
munin.sh needed libcgi-fast-perl and chown log files 2016-01-13 23:55:45 -05:00
network-checks.sh prevent apt from asking the user any questions 2015-02-13 13:41:52 +00:00
owncloud.sh Check if apc is disabled during ownCloud setup, if so enable it (#983) 2016-10-24 07:59:34 -04:00
preflight.sh lower memory requirements to 512MB, display a warning if system memory is below 768MB. (#952) 2016-10-15 15:41:25 -04:00
questions.sh spelling box->Box 2016-02-14 20:24:00 +01:00
spamassassin.sh change bayes_file_mode to world writable (merges #931) 2016-09-23 15:14:21 -04:00
ssl.sh drop the CSR_COUNTRY setting and ask within the control panel 2015-12-26 11:48:23 -05:00
start.sh fail2ban won't start until the roundcube log file is created 2016-08-18 08:32:14 -04:00
system.sh Check if update-manager release-upgrades configuration file is present before editing (#996) 2016-11-13 17:36:33 -05:00
web.sh move nginx-ssl to be a global configuration file rather than including it into each server block 2015-09-27 17:13:11 +00:00
webmail.sh Change ownership of roundcube DB after running migrations (#1024) 2016-12-05 17:32:31 -05:00
zpush.sh Use Roundcube identities to populate Z-Push From name 2016-09-19 11:10:44 -04:00