-
Notifications
You must be signed in to change notification settings - Fork 446
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
Need documentation or fix to use pip configuration with shared libs #609
Comments
This is difficult because the user would expect the answer to be yes for some and no for some. There’s an argument to inherit |
I'm not following--what's the "yes" or "no" questions you're talking about? Are you advocating for something like |
My assumption is that the most likely thing config needed to be used with the shared libraries are things like mentioned in #604, like options affecting index, cert, trusted host, proxy. I can't imagine anything else being useful for shared libs. And those things seem pretty broadly applicable to me. |
Maybe |
woah, I discovered all this issue thread by pure accident (a lucky git-blame) ... when working on a similar issue #1256 . Me working on this was triggered by a similar issue as #604 - we have a private proxy for packages, and we'd like to use it for all python install
First of all, I 100% agree about the need to document it - it took me several hours of trial and errors to understand what was happening behind the hood. The shared libs feature is an effective internal implementation detail, but it's never documented and, as we've seen, it leaks a bit in the public interface.
I had a go at fixing it by doing the full-reverse operation of what @itsayellow did
There is also #1278 incoming that can give advanced users more control |
We now have an |
How would this feature be useful?
Related: #544 #604.
Right now users can use
pip_args
to install a package from a private index. But there is no pipx-specific argument that directs the installation of the shared libs.We used to borrow the pip_args from a package install, but this was an inconsistent mechanism, because the shared libs can be upgraded during
pipx list
and other commands which have nopip_args
.The most reliable way for a user to change such behavior is to set
PIP_*
environment variables, or to set the pip global config (e.g. see #604 (comment))Describe the solution you'd like
My preference would be simply to document what is needed to configure pip.
Describe alternatives you've considered
We could add persistent pipx configuration, but this is a complicated solution because pipx doesn't have global persistent configuration at the moment, and it would have to be added. Plus it's not clear this is easier or better than just configuring pip.
We could also have a dedicated option? or command? that would leave a persistent config in the
pipx/shared
directory, possibly similar or identical topipx_metadata.json
. However this would add complexity and have to be recreated by the user if the shared directory were ever deleted. Again, it's not clear this is better or easier than configuring pip.The text was updated successfully, but these errors were encountered: