Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipx module should expose control of install directories #5813

Closed
1 task done
gdevenyi opened this issue Jan 10, 2023 · 3 comments · Fixed by #5845
Closed
1 task done

pipx module should expose control of install directories #5813

gdevenyi opened this issue Jan 10, 2023 · 3 comments · Fixed by #5845
Labels
feature This issue/PR relates to a feature request has_pr language module module packaging plugins plugin (any type)

Comments

@gdevenyi
Copy link

Summary

pipx honours some environment variables which control where it's environment is created, and where the stub commands are installed. These settings are essential to allow site-wide installation.

https://pypa.github.io/pipx/installation/#installation-options

Issue Type

Feature Idea

Component Name

pipx

Additional Information

PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install PACKAGE

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link
Collaborator

cc @russoz
click here for bot help

@ansibullbot ansibullbot added feature This issue/PR relates to a feature request language module module packaging plugins plugin (any type) labels Jan 10, 2023
@russoz
Copy link
Collaborator

russoz commented Jan 16, 2023

Hi @gdevenyi, thanks for reporting this issue.

When I first saw it I thought we might be able to solve the problem by using environment, an Ansible keyword available to any module. I wrote PR #5845 adding a test for that and it seems that it indeed works.

Please let me know whether this solution does not work for you.

Cheers,
AZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request has_pr language module module packaging plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants