In a mingw shell it will call os.uname() which starts with MINGW.. resulting in bogus results. So just check for sys.platform which is always "cygwin". See #5143
In a mingw shell it will call os.uname() which starts with MINGW.. resulting in bogus results. So just check for sys.platform which is always "cygwin". See #5143