mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45847: Port _bisect, _heapq, _json, _pickle, _random, and _zoneinfo to PY_STDLIB_MOD_SIMPLE (GH-29689)
Automerge-Triggered-By: GH:tiran
This commit is contained in:
parent
133c65a870
commit
718cee08cc
4 changed files with 136 additions and 19 deletions
15
setup.py
15
setup.py
|
@ -1004,18 +1004,15 @@ class PyBuildExt(build_ext):
|
|||
# libm is needed by delta_new() that uses round() and by accum() that
|
||||
# uses modf().
|
||||
self.addext(Extension('_datetime', ['_datetimemodule.c']))
|
||||
# zoneinfo module
|
||||
self.add(Extension('_zoneinfo', ['_zoneinfo.c']))
|
||||
self.addext(Extension('_zoneinfo', ['_zoneinfo.c']))
|
||||
# random number generator implemented in C
|
||||
self.add(Extension("_random", ["_randommodule.c"]))
|
||||
# bisect
|
||||
self.add(Extension("_bisect", ["_bisectmodule.c"]))
|
||||
# heapq
|
||||
self.add(Extension("_heapq", ["_heapqmodule.c"]))
|
||||
self.addext(Extension("_random", ["_randommodule.c"]))
|
||||
self.addext(Extension("_bisect", ["_bisectmodule.c"]))
|
||||
self.addext(Extension("_heapq", ["_heapqmodule.c"]))
|
||||
# C-optimized pickle replacement
|
||||
self.add(Extension("_pickle", ["_pickle.c"]))
|
||||
self.addext(Extension("_pickle", ["_pickle.c"]))
|
||||
# _json speedups
|
||||
self.add(Extension("_json", ["_json.c"]))
|
||||
self.addext(Extension("_json", ["_json.c"]))
|
||||
|
||||
# profiler (_lsprof is for cProfile.py)
|
||||
self.add(Extension('_lsprof', ['_lsprof.c', 'rotatingtree.c']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue