On Wed, May 6, 2020 at 6:30 AM Greg Troxel <[email protected]> wrote: > Tom Keffer <[email protected]> writes: > > > In fact, I would appreciate it if you could point me to any non-trivial > > application that pip installs. I couldn't find any. Just libraries. > > home assistant > > which is sort of like weewx, but more complicated. > > My home assistant install, via pip in a venv, has 119 modules. >
Thanks. Can you point me to its page on pypi? All I'm seeing is this one, and it seems to be a front-end framework, not an application: https://pypi.org/project/home-assistant-frontend/ > Requirements for a pip install: > > > > 1. Ability to install into one directory, such as /home/weewx. It's OK > > if it takes some contorted setting of install directories in order to > do > > this, but I like having all state, all libraries, all code, in one > spot. It > > makes my life easier. > > Is that really a pip requirement? pip can install in a virtualenv, and > for instance I have all homeassistant stuff in a venv in ~/HASS. > Yes, that can work, although it has a different set of problems. - Another tool to learn. - Yes, everything in one virtual environment, but the bits and pieces are scattered about within that environment. - Venvs tend to be "disposable", so it's no place to put the database, which would still have to be put somewhere else. - Same with skins As for namespaces, weewx may need to install all modules as weewx/foo > instead of foo. That doesn't seem terrible. > Yes, that's the solution, but it would require patching all *.conf files to reflect the new location of user modules and schemas. Or, we can install a custom __import__ that first tries (for example) weewx.schema, then schema. I hope I'm not coming across as passive-aggressive, because, really, I'm not. It's just that all these solutions have been considered in the past and rejected for one reason or another. This isn't the first time we've looked at this. The requirements I listed in an earlier email are there for a reason. -tk -- 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/CAPq0zEDK-r4SZ%2BpS0XkeO5UeaWJjcR%2BqC-PzJ549uJxgMwv6uQ%40mail.gmail.com.
