[Cython] Class module names do not respect package hierarchy
Stephane DROUARD
stephane.drouard at st.com
Wed Oct 29 15:02:28 CET 2008
Lisandro Dalcin wrote:
> Or perhaps we could do thing like this:
>
> #ifndef PYX_MODULE_NAME
> #define PYX_MODULE_NAME "mypkg.mymod"
> #endif
>
> and use the macro PYX_MODULE_NAME in the generated sources.
It seems you are suggesting to give the possibility to set the module name
at compile time.
This would not solve my issue where I would need that the package hierarchy
is determined at runtime (because I deliver PYD files, not source files).
Now having a macro to say "use a static name" (the default, as of today) or
"determine it at runtime" is fine for me and would possibly avoid breaking
existing code.
Stephane
More information about the Cython-dev
mailing list