pipx icon indicating copy to clipboard operation
pipx copied to clipboard

How to upgrade a package on a local path without attempting to upgrade any dependency from the internet

Open halloleo opened this issue 3 years ago • 1 comments

Describe the bug

When I upgrade a local package pipx still attempts to connect to the internet and totally hangs when there is no internet.

How to reproduce

Via pipx I have installed a package mypack which sits locally on my machine, so it's package_or_url value is a path to a local directory.

Now I have modified the code of this package and I want to install the new version with pipx upgrade mypack.

Unfortunately the machine has only intermittent internet access, so when there is no internet access I still need to upgrade the local package. How can I do this?

Expected behavior When pipx cannot reach the internet, it only installs the local package. (If pipx cannot detect this itself a command line option could tell pipx not to try the internet.)

halloleo avatar Jun 08 '22 05:06 halloleo

Does your local package contain dependencies that need to be installed from the internet?

I just tried with a local package that doesn't have any dependencies and it worked fine.

dukecat0 avatar Jul 28 '22 13:07 dukecat0