Santoso Wijaya <santoso.wij...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue9709>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to