[C++-sig] How to create package structure in single extension module (original) (raw)

Koen Van Herck koen_van_herck at yahoo.com
Thu Dec 8 18:37:18 CET 2005


Hello,

I would like to do something similar as the example in http://www.boost.org/libs/python/doc/tutorial/doc/html/python/techniques.htm l#python.creating_packages:

import sounds import sounds.io import sounds.filters sound = sounds.io.open('file.mp3') newsound = sounds.filters.echo(sound, 1.0)

but, contrary to the example, by providing only a single sounds.pyd module. The reason is that I'm wrapping a library that uses multiple namespaces and I would like to expose these namespaces to Python. It's not possible though to split the library into different compiled entities. How can I do this using Boost.Python ?

Thanks for your help, Koen Van Herck.



More information about the Cplusplus-sig mailing list