Files
Michal Arbet 1f22f59e45 Improve virtualenv handling and pip installation for SDK roles
Ensure consistent and automatic creation of virtual environments
when defined. Replaced manual `packaging` installation with pip
module usage for better idempotency.
Improved pip binary detection by deriving it from the Python
executable, avoiding hardcoded 'pip3' which can point to diferrent
pip version (pip3.9 instead of pip3.12 for example).

Changes affect both docker_sdk and podman_sdk roles:
- Automatically install both `pip` and `packaging` in the virtualenv.
- Use ansible_facts.python.executable to build pip path dynamically.

This improves compatibility and reduces complexity.

Needed-By: https://review.opendev.org/c/openstack/kolla-ansible/+/949812

Change-Id: Ib361383bc320182e4d1ca0aa4fd4d5017215ea58
2025-05-18 13:41:28 +02:00
..
2025-05-01 15:20:42 +00:00