1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

Fix virtualenv creation reported in #2335

This commit is contained in:
Joshua Tauberer 2023-11-28 07:24:30 -05:00
parent 0314554207
commit 371f5bc1b2
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,11 @@
CHANGELOG
=========
In Development
--------------
* Some users reported an error installing Mail-in-a-Box related to the virtualenv command. This is hopefully fixed.
Version 65 (October 27, 2023)
-----------------------------

View File

@ -27,6 +27,12 @@ inst_dir=/usr/local/lib/mailinabox
mkdir -p $inst_dir
venv=$inst_dir/env
if [ ! -d $venv ]; then
# A bug specific to Ubuntu 22.04 and Python 3.10 requires
# forcing a virtualenv directory layout option (see #2335
# and https://github.com/pypa/virtualenv/pull/2415). In
# our issue, reportedly installing python3-distutils didn't
# fix the problem.)
export DEB_PYTHON_INSTALL_LAYOUT='deb'
hide_output virtualenv -ppython3 $venv
fi