I'm trying to prepackage library sources and pregenerated stubs together with my plugin to work with a custom SDK. Prepackaging library sources is necessary because only pyc files are distributed with some libraries without including the sources. Prepackaging stubs is necessary to avoid costly stub generation for .NET libraries (this python SDK supports .NET lib imports).
My questions are:
1) How should the prepackaged sources be added to the SDK. Do I add them as "CLASSES"?
2) Would it work if the sources are contained inside a zip/jar/egg. e.g would jar://path/to/somefile.zip!/library_name work as a path?
3) How should pregenerated stubs be added? Do I just extract them to the stubs folder?
4) Is there a way to add pregenerated stubs without extracting them, e.g the same thing as in question #2?