Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

pip should reinstall . #536

Open
dholth opened this Issue · 5 comments

4 participants

@dholth
Owner

When asked to 'pip install .' it would be nice if pip actually reinstalled it, rather than checking the version number.

@ianb
Owner

Should the general heuristic be to reinstall local files that are given on the command line? This would keep local files in requirement files from being reinstalled automatically, which may or may not be a good idea, I can't decide.

(It should be feasible to determine why something is being installed using comes_from and so treat command-line arguments differently from other indirect installations.)

@dholth
Owner
@ianb
Owner

I'm not sure there is, --ignore-installed would force a reinstall, but it'd force a reinstall of all the dependencies too. pip install -e should work okay, since edits should show up, and I believe it does force installation. But pip install . copies files and doesn't force.

@chrish42

I'd personally prefer if pip install didn't do the work if none is required. It's "more idempotent" :-), and I think more useful when installing "released" packages. But I agree that an optional --reinstall that forces reinstall of the requested package (but not its dependencies) is useful. That would be my suggestion, if I can pipe in here. (Right now I'm using pip install --no-deps --ignore-installed to do that for my package in development, but it's a bit of a mouthful.)

@unhammer

Perhaps an --ignore-installed-this option that ignores installed except for dependencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.