diff -Naur Python-3.5.2-orig/setup.py Python-3.5.2/setup.py --- Python-3.5.2-orig/setup.py 2016-07-12 14:21:07.246800700 +0300 +++ Python-3.5.2/setup.py 2016-07-12 14:21:15.117800700 +0300 @@ -1296,7 +1296,7 @@ missing.append('_gdbm') # Unix-only modules - if host_platform != 'win32': + if not host_platform.startswith(('mingw', 'win')): # Steen Lumholt's termios module exts.append( Extension('termios', ['termios.c']) ) # Jeremy Hylton's rlimit interface