--- python3.2-3.2~~20100704.orig/Modules/Setup.dist +++ python3.2-3.2~~20100704/Modules/Setup.dist @@ -160,6 +160,7 @@ #cmath cmathmodule.c _math.c # -lm # complex math library functions #math mathmodule.c _math.c # -lm # math library functions, e.g. sin() #_struct _struct.c # binary structure packing/unpacking +#_time _time.c # # segregated code shared between time and datetime modules #time timemodule.c # -lm # time operations and variables #operator operator.c # operator.add() and similar goodies #_weakref _weakref.c # basic weak reference support --- python3.2-3.2~~20100704.orig/Modules/_time.c +++ python3.2-3.2~~20100704/Modules/_time.c @@ -26,3 +26,27 @@ } return result; } + +static struct PyModuleDef _timemodule = { + PyModuleDef_HEAD_INIT, + "_time", + "segregated code shared between time and datetime modules.", + -1, + NULL, + NULL, + NULL, + NULL, + NULL +}; + +PyMODINIT_FUNC +PyInit__time(void) +{ + PyObject *m; /* a module object */ + + m = PyModule_Create(&_timemodule); + if (m == NULL) + return NULL; + + return m; +}