Of course, any approach using virtual envs has one potential issue which is that it relies on the continued existence of the original python used to install it. With the benefit of hindsight I could maybe make this work using pipx now, but at the time it just didn’t seem to be quite enough and there wasn’t much help online for this scenario. In my case the additional step of installing pipx wasn’t a total showstopper but I really needed to keep the app contained in one directory (particularly on Windows) and I also needed to install user-editable config files alongside the executable (an entry point, like pipx). This is pretty much the same use case I’ve faced before and ended up writing installer scripts which end up doing something very similar to pipx. If I have to write a guide on how to install pipx I can also write a guide on how to create and set up the venv. for reading smart meters or smart home rule engine) which normally run as a systemd service … I mainly create applications for home automation (e.g. People will hate the manual effort and do it anyway.Īs far as I understand pipx installs to the user directory … Including simething like pipx that adds a way to install an application locally in a folder (with a venv) would be a good start and already simplify things.įor developers differentiate between libraries and applications and have appropriate tooling.Īlso patronizing developers by not allowing application owners to specify a file as dependency will just lead to frustration. Python claims to have “Batteries included” so why not include an easy and convenient way to install applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |