On Saturday, February 18, 2023 at 5:49:11 AM UTC-8 Tom Keffer wrote:
... with the upcoming Version 5: you can reinstall with pip as many times 
as you want. Just don't run "weectl station upgrade" afterwards.

Confused.

I thought you 'always' needed to run "weectl station upgrade" after a v5 
pip install so that the data directory always lines up with what pip 
installed into the code directory.

FWIW - if it's me doing this particular scripting use case I'd add a switch 
to the pip3 command ala:

   -  'pip install weewx==5.0.1' to freeze the software version pip tries 
   to install

And then examine the output from pip to know whether they need to run 
"weectl station upgrade" to sync up the data dir to the installed code (or 
not):

   - if they see 'Requirement already satisfied: weewx'  (a reinstall), 
   they don't need to do anything else
   - if they see 'Installing collected packages: weewx'  (a new install or 
   upgrade), they need to run weectl station upgrade' to catch the data dir 
   up to the code dir

????
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/2db52e17-ec60-4d6b-ac4d-08124be6fe89n%40googlegroups.com.

Reply via email to