This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author santoso.wijaya
Recipients brian.curtin, eric.araujo, loewis, mhammond, santoso.wijaya, skrah, tarek, thorsten.behrens
Date 2011-04-04.23:52:36
SpamBayes Score 0.0031142235
Marked as misclassified No
Message-id <1301961157.24.0.546920691002.issue9709@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-04-04 23:52:37santoso.wijayasetrecipients: + santoso.wijaya, loewis, mhammond, tarek, eric.araujo, brian.curtin, skrah, thorsten.behrens
2011-04-04 23:52:37santoso.wijayasetmessageid: <1301961157.24.0.546920691002.issue9709@psf.upfronthosting.co.za>
2011-04-04 23:52:36santoso.wijayalinkissue9709 messages
2011-04-04 23:52:36santoso.wijayacreate