Make Lima a python namespace package#116
Make Lima a python namespace package#116tiagocoutinho wants to merge 1 commit intoesrf-bliss:masterfrom
Conversation
|
Hi @tiagocoutinho , do you thing this is still necessary? I can appove your PR then wait for the doc. |
|
Hi @laurent-claustre , There could be some use for it in https://github.com/tiagocoutinho/lima-toolbox but that would require some backward incompatible changes (not blocking since I was the only one using it :-) and since I left ALBA I am not working on it anymore... unless someone asks me for some freelance work on it ;-) @rhomspuron, @jairomoldes, @fbecheri you're the only ones I know at ALBA that could possibly profit from this. If you have interest in this please let lima team know On my side you could reject this PR if nobody else is interested. |
rationale
It would be nice for external lima python software to share the Lima namespace.
Example: If someone is writing a python camera plugin for Lima it would be nice if after installing,
it could be used with:
It could be done if Lima becomes a python namespace package (see here).
But for this it is necessary that all packages (including Lima itself) reduce their
Lima/__init__.pyto a single line:
Check here for a sample project using this python feature.
I propose also to add this information to the documentaion if the idea behind this PR is accepted so please don't merge the PR until I do!
Doubts
Seems the existing code in
Lima/__init__.pyis never activated becauseget_osseems to be alwaysNone. I assumed this was some old code that can be removed.`Also, it forces
LIMA_LINK_STRICT_VERSION. I search the entire Lima project and I could not find any place where it could be used so I also assumed it can be removed.