[C++-sig] How to create embedded packages?

Stefan Seefeld seefeld at sympatico.ca
Fri Oct 24 20:10:17 CEST 2008

Robert Dailey wrote:
> my_package/
>    module1/
>    module2/
>    module3/
> However, the Boost.Python documentation only explains one specific way
> of doing this, and that involves actually having PYD files for module1,
> module2, and module3. Since this is all done from C++, I need to be able
> to create this package without depending on the filesystem. Is this
> possible?

I don't think so. While you certainly can embed multiple modules into 
the same executable, you can't embed a hierarchical structure like the 
one you seem to want, as Python has strict expectations as to what 
qualifies as a 'package'.



      ...ich hab' noch einen Koffer in Berlin...

More information about the Cplusplus-sig mailing list