[issue9709] test_distutils warning: initfunc exported twice on Windows
Santoso Wijaya
report at bugs.python.org
Tue Apr 5 01:52:37 CEST 2011
Santoso Wijaya <santoso.wijaya at gmail.com> added the comment:
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.
----------
nosy: +santa4nt
versions: +Python 3.3 -3rd party
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9709>
_______________________________________
More information about the Python-bugs-list
mailing list