system-config/playbooks/roles/create-venv/README.rst
Ian Wienand ea08cdbd16 create-venv: add role; use in install-borg
As noted inline, make a create-venv role that brings in appropriate
versions on Bionic.

This was noticed because pip is trying to install borgbackup with
setuptools_scm 7.0.5, which doesn't support Python 3.6.  We use this
new role to create the venv correctly.

Change-Id: I81fd268a9354685496a75e33a6f038a32b686352
2022-08-10 10:14:51 +10:00

766 B

Create a venv

You would think this role is unnecessary and roles could just install a venv directly ... except sometimes pip/setuptools get out of date on a platform and can't understand how to install compatible things. For example the pip shipped on Bionic will upgrade itself to a version that doesn't support Python 3.6 because it doesn't understand the metadata tags the new version marks itself with. We've seen similar problems with wheels. History has shown that whenever this problem appears solved, another issue will appear. So for reasons like this, we have this as a synchronization point for setting up venvs.

Role Variables