24 Jun
2020
24 Jun
'20
3:24 a.m.
On Wed, 24 Jun 2020 at 00:00, David Mathog <dmathog@gmail.com> wrote:
Does such a beast exist? If so, please point me to it!
Basically no, or at least not to my knowledge. The mechanisms exist, in the form of import hooks and similar, to build something like this, but it's not proved to be a common enough requirement that there's a well-known/standard library for it. I believe that setuptools (pkg_resources) had a mechanism to do something along these lines, but it never really became popular and I don't know if it's still considered as supported by the setuptools maintainers. So I think you're going to have to either accept the need for multiple copies, or write something specific for your situation. Sorry, Paul