mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
Issue #9012: "Separate compilation of time and datetime modules."
Segregated code shared between time and datetime modules into Modules/_time.c. Added a new header file, Modules/_time.h, which will be used instead of Include/timefuncs.h for declarations shared between time and datetime modules.
This commit is contained in:
parent
294f27141f
commit
d95a586d77
4 changed files with 33 additions and 28 deletions
4
setup.py
4
setup.py
|
@ -450,9 +450,9 @@ class PyBuildExt(build_ext):
|
|||
depends=['_math.h'],
|
||||
libraries=math_libs) )
|
||||
# time operations and variables
|
||||
exts.append( Extension('time', ['timemodule.c'],
|
||||
exts.append( Extension('time', ['timemodule.c', '_time.c'],
|
||||
libraries=math_libs) )
|
||||
exts.append( Extension('datetime', ['datetimemodule.c', 'timemodule.c'],
|
||||
exts.append( Extension('datetime', ['datetimemodule.c', '_time.c'],
|
||||
libraries=math_libs) )
|
||||
# fast iterator tools implemented in C
|
||||
exts.append( Extension("itertools", ["itertoolsmodule.c"]) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue