mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
[PR #6308/f93a1bf5 backport][stable-6] pipx: Add support for system_site_packages (#6311)
pipx: Add support for system_site_packages (#6308)
* pipx: Add support for system_site_packages
* Add changelog fragment
(cherry picked from commit f93a1bf5ec
)
Co-authored-by: Paul Aurich <paul@darkrain42.org>
This commit is contained in:
parent
24378fd944
commit
44e4b1d202
4 changed files with 41 additions and 2 deletions
|
@ -51,6 +51,34 @@
|
|||
- uninstall_tox is changed
|
||||
- "'tox' not in uninstall_tox.application"
|
||||
|
||||
##############################################################################
|
||||
- name: install application tox with system-site-packages
|
||||
community.general.pipx:
|
||||
name: tox
|
||||
system_site_packages: true
|
||||
register: install_tox
|
||||
|
||||
- name: get raw pipx_info
|
||||
community.general.pipx_info:
|
||||
include_raw: true
|
||||
register: pipx_info_raw
|
||||
|
||||
- name: uninstall application tox
|
||||
community.general.pipx:
|
||||
state: absent
|
||||
name: tox
|
||||
register: uninstall_tox
|
||||
|
||||
- name: check assertions tox
|
||||
assert:
|
||||
that:
|
||||
- install_tox is changed
|
||||
- "'tox' in install_tox.application"
|
||||
- pipx_info_raw is not changed
|
||||
- "'--system-site-packages' in pipx_info_raw.raw_output.venvs.tox.metadata.venv_args"
|
||||
- uninstall_tox is changed
|
||||
- "'tox' not in uninstall_tox.application"
|
||||
|
||||
##############################################################################
|
||||
- name: install application tox 3.24.0
|
||||
community.general.pipx:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue