Skip to content

Add gobal --skip-maintenance option (i.e., allow pipx to work without network access) #1278

@christian-krieg

Description

@christian-krieg

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 a deps directory, and I pass --no-index and --find-links=deps options with --pip-args. Still, it is not possible to install the package, because pipx is trying to connect to the Internet without success, resulting in a connection timeout.

Having a global --skip-maintenance option would allow one to use pipx 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 calling pipx 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 to pipx, instead of implementing this feature for every single command it might be useful for, such that pipx --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 of pipx (which successfully installs the wheel and dependencies, but without the isolation that comes with pipx).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions