I just noticed that I forgot to run
sudo su mailman before activating virtualenv.
Now I did this. Mailman installation process runs to the end, not yielding "permission denied", but still printing out 5 times: ERROR: Command errored out with exit status 1: command: /opt/mailman/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-i1bp8cl9/dkimpy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-i1bp8cl9/dkimpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-liw7r9lt cwd: /tmp/pip-install-i1bp8cl9/dkimpy/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for dkimpy Running setup.py clean for dkimpy Building wheel for lazr.delegates (setup.py) ... error ERROR: Command errored out with exit status 1: command: /opt/mailman/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-i1bp8cl9/lazr.delegates/setup.py'"'"'; __file__='"'"'/tmp/pip-install-i1bp8cl9/lazr.delegates/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-f6q_xexm cwd: /tmp/pip-install-i1bp8cl9/lazr.delegates/ Complete output (6 lines): usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for lazr.delegates
Nevertheless it ends with:
Successfully installed Mako-1.2.3 MarkupSafe-2.1.1 aiosmtpd-1.4.2 alembic-1.6.5 atpublic-3.1.1 attrs-22.1.0 authheaders-0.15.1 authres-1.2.0 certifi-2022.9.24 charset-normalizer-2.1.1 click-8.1.3 dkimpy-1.0.5 dnspython-2.2.1 falcon-3.1.0 flufl.bounce-4.0 flufl.i18n-4.1.1 flufl.lock-7.1.1 gunicorn-20.1.0 idna-3.4 importlib-resources-5.9.0 lazr.config-2.2.3 lazr.delegates-2.0.4 mailman-3.3.5 nose-1.3.7 passlib-1.7.4 psutil-5.9.2 psycopg2-binary-2.8.6 publicsuffix2-2.20191221 python-dateutil-2.8.2 python-editor-1.0.4 requests-2.28.1 six-1.16.0 sqlalchemy-1.3.24 urllib3-1.26.12 wheel-0.37.1 zipp-3.8.1 zope.component-5.0.1 zope.configuration-4.4.1 zope.event-4.5.0 zope.hookable-5.2 zope.i18nmessageid-5.0.1 zope.interface-5.4.0 zope.schema-6.2.1
I suppose there are some packages missing, probably the one it was not able to build.