-
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
Add gobal --skip-maintenance
option (i.e., allow pipx to work without network access)
#1278
Comments
--skip-maintenance
a gobal option to pipx--skip-maintenance
a gobal option to pipx (i.e., allow pipx to work without network connection)
--skip-maintenance
a gobal option to pipx (i.e., allow pipx to work without network connection)--skip-maintenance
a gobal option (i.e., allow pipx to work without network access)
Thanks for opening this issue! It is curently being worked on deprecating the |
Hi @chrysle, thank you very much for the pointer! As far as I understand, #1256 seeks to disable maintenance tasks for contexts in which a user wouldn't expect such tasks. While this may work perfectly well for many users and probably almost all use cases, I am wondering whether it may be favorable to let the user decide using So, having some global |
--skip-maintenance
a gobal option (i.e., allow pipx to work without network access)--offline
option (i.e., allow pipx to work without network access)
While the E.g. during From my perspective the Aside from the shared packages maintenance, do we have more network calls that may not be intuitive? |
@Gitznik, thank you very much for taking your time to elaborate the implications of an If implemented, it may be helpful to document something like |
--offline
option (i.e., allow pipx to work without network access)--skip-maintenance
option (i.e., allow pipx to work without network access)
I'm all for making the behavior of that flag clearer to the user 👍 IMO a PR for making |
I agree, but let's hold this until #1256 is merged. Then we could extend the global args and pass them in the newly created function. |
I would be happy to work on such a PR and subscribed to #1256 to monitor its progress. |
Hi @christian-krieg , just letting you know that #1256 was merged :) |
How would this feature be useful?
I have a similar problem as discussed in #1081 when attempting to
pipx install
a wheel on a machine without Internet access. All dependencies are available as wheels in adeps
directory, and I pass--no-index
and--find-links=deps
options with--pip-args
. Still, it is not possible to install the package, becausepipx
is trying to connect to the Internet without success, resulting in a connection timeout.Having a global
--skip-maintenance
option would allow one to usepipx
on machines without access to the Internet.Describe the solution you'd like
I ported the fix provided in #1163 to the
install
command, so when callingpipx install --skip-maintenance
, installing a local wheel works just fine.In order to avoid code duplication, I suggest to make
--skip-maintenance
a global option topipx
, instead of implementing this feature for every single command it might be useful for, such thatpipx --skip-maintenance install
would be available.Describe alternatives you've considered
The only alternative I have considered and tested so far is using
pip
instead ofpipx
(which successfully installs the wheel and dependencies, but without the isolation that comes withpipx
).The text was updated successfully, but these errors were encountered: