I maintain an in-house Python package which is used by some not-really-technical people in the company. Being that their needs (or rather, their wants) change on an almost-daily basis, I have to update the library pretty often, and I create new installers for them too often for their liking.
The lib provides a high-level access to a custom in-house database. At this point, I know that I could send the lib version along with the query request, and show the user a message with the result that they need to install an update.
However, being that these people seem to think that taking a few seconds to click on an .exe file and clicking through the "next" buttons on the installer takes too long, I'm being asked to see if there's a way to automatically update the library when they do the "import X" call.
I have never come across this kind of request, and I'm thinking that if this was possible that most popular libraries would offer this option. But I've been wrong before, and often. Has anyone successfully done this before?
reload()
on the module... But I really don't think it's a good idea. What if there's an update that breaks everything? People wouldn't be able to prevent their systems being broken by the auto-upgrade. If they need updates that fast, can't they work direct from a branch in the repo you're using instead of using an installer? Then they can sink whenever they like. Or they could be less lazy, of course. (^_^) – Cardiganshire