Timothy Murphy added the comment: This patch works for me on Linux but it seems clearly wrong for windows.
The problem is that using it on windows introduces a dependency and I don't have a windows machine to check if this is ok. To me it seems that the time module must have been built as part of the core somehow in the past. diff -r 5adf995d443f Modules/timemodule.c --- a/Modules/timemodule.c Mon Jul 06 14:03:01 2015 +0300 +++ b/Modules/timemodule.c Mon Jul 06 14:15:52 2015 +0100 @@ -30,6 +30,13 @@ #endif /* MS_WINDOWS */ #endif /* !__WATCOMC__ || __QNX__ */ +#define Py_BUILD_CORE +#include "pyport.h" + +#define _Py_BEGIN_SUPPRESS_IPH +#define _Py_END_SUPPRESS_IPH + + /* Forward declarations */ static int pysleep(_PyTime_t); static PyObject* floattime(_Py_clock_info_t *info); ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24575> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com