mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
scripts/ansible: Document new OS's PEP 668 guideline
This commit is contained in:
parent
1b48a2666a
commit
7365b41680
1 changed files with 3 additions and 0 deletions
|
@ -199,6 +199,9 @@ echo -e "\napt update; apt install python3-venv"
|
||||||
$APT_PATH/apt update
|
$APT_PATH/apt update
|
||||||
$APT_PATH/apt -y install python3-venv
|
$APT_PATH/apt -y install python3-venv
|
||||||
|
|
||||||
|
# 2023-03-22: OS's like Ubuntu 23.04 and Debian 12 (e.g. with Python 3.11+) ask
|
||||||
|
# that virtual environments (venv) be used to safely isolate pip installs:
|
||||||
|
# https://peps.python.org/pep-0668
|
||||||
echo -e "\nCreate virtual environment for Ansible"
|
echo -e "\nCreate virtual environment for Ansible"
|
||||||
python3 -m venv /usr/local/ansible
|
python3 -m venv /usr/local/ansible
|
||||||
/usr/local/ansible/bin/python3 -m pip install --upgrade ansible-core
|
/usr/local/ansible/bin/python3 -m pip install --upgrade ansible-core
|
||||||
|
|
Loading…
Reference in a new issue