43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
From 2f5e5231a5976e10a3b11d5ed015ba15117890c7 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 046/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 +-
|
|
setup.py | 3 +++
|
|
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Modules/Setup.bootstrap.in b/Modules/Setup.bootstrap.in
|
|
index a781a06..6986290 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/setup.py b/setup.py
|
|
index 2775dde..e33f4f8 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -1049,6 +1049,9 @@ def detect_test_extensions(self):
|
|
['_xxtestfuzz/_xxtestfuzz.c', '_xxtestfuzz/fuzzer.c']
|
|
))
|
|
|
|
+ if MS_WINDOWS:
|
|
+ self.add(Extension('_testconsole', ['../PC/_testconsole.c']))
|
|
+
|
|
def detect_readline_curses(self):
|
|
# readline
|
|
readline_termcap_library = ""
|