Skip to content
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 upgrade option to flit install #681

Open
mgax opened this issue May 8, 2024 · 2 comments
Open

Add upgrade option to flit install #681

mgax opened this issue May 8, 2024 · 2 comments

Comments

@mgax
Copy link

mgax commented May 8, 2024

When developing a library that is set up with Flit, it's common to run flit install to try out the library in a virtualenv. After a while, dependencies might get out of date, so one might want to upgrade them, within the constraints of the library's dependencies. Right now it seems that you'd have to recreate the virtualenv and re-run flit install to achieve this.

@takluyver
Copy link
Member

I think pip install . --upgrade-strategy eager would do it. You can also pass that through flit as an environment variable: PIP_UPGRADE_STRATEGY=eager flit install.

I'm reluctant to add wrappers for all of pip's many CLI options. flit install is kind of only hanging around because I prefer my --symlink option to the way editable installs work with pip. 🤷

@mgax
Copy link
Author

mgax commented May 8, 2024

I think pip install . --upgrade-strategy eager would do it.

Nope, but pip install . --upgrade-strategy eager --upgrade will upgrade dependencies.

You can also pass that through flit as an environment variable: PIP_UPGRADE_STRATEGY=eager flit install.

That also doesn't upgrade things, perhaps for the same reason.


@takluyver thanks for looking into this! TBH I don't really mind using pip install -e . --upgrade, this just seemed like an obvious missing feature of flit install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants