I think in this case the only problem is getting all the right directories on the package's __path__; am I missing something? It avoids the need for the "conditional" import, but that's largely separate.
Good point. Can you recommend a concise place that the import mechanism (in all it's glory) is documented?
That should solve the problem, except for when freeze-ing or making a static python binary (as previously mentioned by Konrad).
I was poking around in ihooks.py. It looks like it should be possible to cook up something approximating this using ihooks. What do you think?