Files
MINGW-packages/mingw-w64-python2/0340-MINGW-setup-exclude-termios-module.patch

13 lines
485 B
Diff

diff -urN a/setup.py b/setup.py
--- a/setup.py 2014-10-11 22:41:20.736331600 +0100
+++ b/setup.py 2014-10-11 22:41:23.635497400 +0100
@@ -1318,7 +1318,7 @@
missing.append('gdbm')
# Unix-only modules
- if host_platform not in ['win32']:
+ if not host_platform.startswith(('mingw', 'win')):
# Steen Lumholt's termios module
exts.append( Extension('termios', ['termios.c']) )
# Jeremy Hylton's rlimit interface