Skip to content

Commit 1219841

Browse files
committed
move arraymodule back from bootstrap to stdlib
1 parent 5f6b94b commit 1219841

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

Include/internal/pycore_pymem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ extern wchar_t *_PyMem_DefaultRawWcsdup(const wchar_t *str);
8888
extern int _PyMem_DebugEnabled(void);
8989

9090
// Enqueue a pointer to be freed possibly after some delay.
91-
extern void _PyMem_FreeDelayed(void *ptr, size_t size);
91+
PyAPI_FUNC(void) _PyMem_FreeDelayed(void *ptr, size_t size);
9292

9393
// Periodically process delayed free requests.
9494
extern void _PyMem_ProcessDelayed(PyThreadState *tstate);

Modules/Setup.bootstrap.in

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ posix posixmodule.c
1212
_signal signalmodule.c
1313
_tracemalloc _tracemalloc.c
1414
_suggestions _suggestions.c
15+
# needs libm and on some platforms librt
16+
_datetime _datetimemodule.c
1517

1618
# modules used by importlib, deepfreeze, freeze, runpy, and sysconfig
1719
_codecs _codecsmodule.c
@@ -38,6 +40,3 @@ _symtable symtablemodule.c
3840

3941
# for systems without $HOME env, used by site._getuserbase()
4042
@MODULE_PWD_TRUE@pwd pwdmodule.c
41-
42-
# for optimization purposes
43-
@MODULE_ARRAY_TRUE@array arraymodule.c

Modules/Setup.stdlib.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
############################################################################
3333
# Modules that should always be present (POSIX and Windows):
34+
@MODULE_ARRAY_TRUE@array arraymodule.c
3435
@MODULE__BISECT_TRUE@_bisect _bisectmodule.c
3536
@MODULE__CSV_TRUE@_csv _csv.c
3637
@MODULE__HEAPQ_TRUE@_heapq _heapqmodule.c
@@ -54,9 +55,6 @@
5455
@MODULE_CMATH_TRUE@cmath cmathmodule.c
5556
@MODULE__STATISTICS_TRUE@_statistics _statisticsmodule.c
5657

57-
# needs libm and on some platforms librt
58-
@MODULE__DATETIME_TRUE@_datetime _datetimemodule.c
59-
6058
# _decimal uses libmpdec
6159
# either static libmpdec.a from Modules/_decimal/libmpdec or libmpdec.so
6260
# with ./configure --with-system-libmpdec

0 commit comments

Comments
 (0)