pipx icon indicating copy to clipboard operation
pipx copied to clipboard

Need consistent `inject --include-apps` behavior with suffix

Open itsayellow opened this issue 5 years ago • 2 comments

Describe the bug

When injecting into a venv with a suffix using --include-apps, currently the injected apps do not take the venv sufix. This seems inconsistent to me.

We should at least decide intentionally what the proper behavior should be.

How to reproduce

pipx install pycowsay --suffix _2
pipx inject pycowsay_2 black --include-apps

Expected behavior

I would assume if that we would end up with a black_2 app to match the venv, but in fact we end up with a black app.

itsayellow avatar Oct 13 '20 22:10 itsayellow

I am facing the same issue. pipx inject doesn't take a suffix argument, and doesn't add the suffix of the original argument.

amardeep avatar Nov 19 '21 16:11 amardeep

Maybe an option like --with-suffix can be added.

dukecat0 avatar Aug 11 '22 05:08 dukecat0