[issue24575] timemodule build fail - missing definitions for _Py_BEGIN_SUPPRESS_IPH and _Py_END_SUPPRESS_IPH

Steve Dower report at bugs.python.org
Mon Oct 12 11:43:07 EDT 2015


Steve Dower added the comment:

If they are compiled independently, they should have Py_BUILD_CORE set. 

That flag is meant for the headers, which serve dual purposes, not the module itself. *Any* C file that is part of core should expect that option to be set for when it includes its headers.

All that said, it seems that _datetimemodule.c forces Py_BUILD_CORE on to get access to some extra definitions, which presumably means that somebody at some point wanted to compile it into an extension module. I don't see the use case here though - is there something about its public API that is not stable?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24575>
_______________________________________


More information about the Python-bugs-list mailing list