Files
MINGW-packages/mingw-w64-python3/1850-disable-readline.patch
Christoph Reiter 457a2fe523 python3: don't build the readline module (#4051)
The official CPython doesn't either on Windows.
One less thing to care about.
2018-07-06 15:13:38 +03:00

15 lines
602 B
Diff

--- Python-3.7.0/setup.py.orig 2018-07-06 12:59:49.823002800 +0200
+++ Python-3.7.0/setup.py 2018-07-06 13:28:16.321187300 +0200
@@ -807,7 +807,10 @@
libraries=['m']) )
# readline
- do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
+ if not host_platform.startswith(('mingw', 'win')):
+ do_readline = self.compiler.find_library_file(lib_dirs, 'readline')
+ else:
+ do_readline = False
readline_termcap_library = ""
curses_library = ""
# Cannot use os.popen here in py3k.