Basic dependencies between libraries

It would help a lot if a library could declare a simple dependency on another library. It wouldn't need to point to a specific version. Something like "this library needs that one installed" would be enough, and the library can check the version itself.

I know this goes somewhat against the simplicity of libraries, and it would probably complicate the current implementation quite a bit. Still, I wanted to mention it, because I keep running into cases where I'd like to split out a shared core module, with a single instance that the other libraries use.

Of course a workaround exists: users install the core themselves, and each library checks in its init whether the core is there and in which version (which it would probably do anyway). So it's nothing critical. I just wanted to show that there's a real use case for it.

I literally added a version of this yesterday on edge: Development (requires attribute)

Yay, that's great news! To be honest, I didn't expect it to actually happen. :sweat_smile:

Thank you!