Home > other >  C language extensions how to solve the problem of nested module when Python?
C language extensions how to solve the problem of nested module when Python?

Time:03-20

I use C language extensions python, want to give to the user is a DLL file, or OS file
But I do need to use nested in the module, check the information on the net, is solved through the setup, but if I give to the user is already compiled class libraries, seemingly setup not make
So I want to join the Python module nested in C, how to achieve this?

Such as my structure is as follows:
RPF
RPF. Graphics
RPF. Frame

This structure
Defined directly when I only do RPF PyModuleDef:
The static struct PyModuleDef rpgame_module={
PyModuleDef_HEAD_INIT,
"Rpgame,"
"RainbowPixel basic framework,"
1,
Rpgame_methods
};

The other two do??
  • Related