-
Notifications
You must be signed in to change notification settings - Fork 20
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 command to self-upgrade #269
Comments
The following worked: pip install --upgrade nextstrain-cli |
The 6.2.1 version was recommended because Nextstrain CLI only checks PyPI for the latest version. The reason (as I suspect you know, but saying for posterity) that the The window of time between the PyPI package updating and the Conda package updating is usually relatively short, but I suppose to avoid it we could query the Bioconda package version if we know we're going to recommend updating with it. Separately, by installing with pip, you've now switched from a Conda-installed copy of Nextstrain CLI to a Pip-installed copy. It's best to avoid Pip when possible when you're working in a Conda env, as mixing them can cause dependency issues later. You might consider re-installing 6.2.1 from Conda once it's available there. |
Yeah, I've been meaning to add a self-upgrade command. I thought there was an issue for it, but maybe not. Half of the reason why we carefully construct a command to suggest to the user is that it also will let us provide a way to run it automatically. Just haven't gotten 'round to it yet. I'm not sure |
self
to nextstrain update
allowed arguments
Context
When updating
nextstrain
runtimes, I was told that a new cli version is available and that I should update using:That doesn't actually work:
(but that's not what this issue is about)
Description
I was wondering whether it would make sense to add
self
update to the options ofnextstrain update
.Rather than prompting the user to run a specific command (that may actually not work) why not run some code that we know works to update the version?
The text was updated successfully, but these errors were encountered: