54 lines
2.3 KiB
Diff
54 lines
2.3 KiB
Diff
From cfdd9f74aefca9694fc28169dfdef2bf40d187b5 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Reiter <reiter.christoph@gmail.com>
|
|
Date: Thu, 17 Jun 2021 18:52:11 +0530
|
|
Subject: [PATCH 037/N] build: build winconsoleio and _testconsole
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Co-authored-by: Алексей <alexey.pawlow@gmail.com>
|
|
Co-authored-by: Naveen M K <naveen521kk@gmail.com>
|
|
---
|
|
Modules/Setup.bootstrap.in | 2 +-
|
|
Modules/Setup.stdlib.in | 1 +
|
|
configure.ac | 1 +
|
|
3 files changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Modules/Setup.bootstrap.in b/Modules/Setup.bootstrap.in
|
|
index ec0f81e..cec80f5 100644
|
|
--- a/Modules/Setup.bootstrap.in
|
|
+++ b/Modules/Setup.bootstrap.in
|
|
@@ -16,7 +16,7 @@ _tracemalloc _tracemalloc.c
|
|
_codecs _codecsmodule.c
|
|
_collections _collectionsmodule.c
|
|
errno errnomodule.c
|
|
-_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
|
+_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c _io/winconsoleio.c
|
|
itertools itertoolsmodule.c
|
|
_sre _sre/sre.c
|
|
_thread _threadmodule.c
|
|
diff --git a/Modules/Setup.stdlib.in b/Modules/Setup.stdlib.in
|
|
index 98e3ef2..b96db5d 100644
|
|
--- a/Modules/Setup.stdlib.in
|
|
+++ b/Modules/Setup.stdlib.in
|
|
@@ -184,6 +184,7 @@
|
|
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
|
|
@MODULE__TESTMULTIPHASE_TRUE@_testsinglephase _testsinglephase.c
|
|
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
|
|
+@MODULE__TESTCONSOLE_TRUE@_testconsole ../PC/_testconsole.c
|
|
|
|
# Limited API template modules; must be built as shared modules.
|
|
@MODULE_XXLIMITED_TRUE@xxlimited xxlimited.c
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 7002b78..1c8d1e7 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -7887,6 +7887,7 @@ PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes], [test "$ac_cv
|
|
PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
|
|
PY_STDLIB_MOD([xxsubtype], [test "$TEST_MODULES" = yes])
|
|
PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
|
|
+PY_STDLIB_MOD([_testconsole], [test "$TEST_MODULES" = yes -a "$MACHDEP" = "win32"])
|
|
PY_STDLIB_MOD([_ctypes_test],
|
|
[test "$TEST_MODULES" = yes], [test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes],
|
|
[], [$LIBM])
|