Message132991
A workaround would be to define an arbitrary macro when building with distutils. For example, in setup.cfg:
[build_ext]
define = _DISTUTILS
Then in some main header file(s) in your project:
#ifdef _DISTUTILS
#undef PyMODINIT_FUNC
#define PyMODINIT_FUNC void
#endif
And you won't get the warning anymore. |
|
Date |
User |
Action |
Args |
2011-04-04 23:52:37 | santoso.wijaya | set | recipients:
+ santoso.wijaya, loewis, mhammond, tarek, eric.araujo, brian.curtin, skrah, thorsten.behrens |
2011-04-04 23:52:37 | santoso.wijaya | set | messageid: <1301961157.24.0.546920691002.issue9709@psf.upfronthosting.co.za> |
2011-04-04 23:52:36 | santoso.wijaya | link | issue9709 messages |
2011-04-04 23:52:36 | santoso.wijaya | create | |
|