Commit ee65883b authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Detect msys2 via uname (different to msys)

uname -s
  msys gives "MINGW32"
  msys2 gives "MINGW_NT-6.2"
parent 1e603f5e
......@@ -132,13 +132,16 @@ if config.use_threads == 1:
config.cygwin = False
config.msys = False
if windows:
h = os.popen('uname -s', 'r')
v = h.read()
h.close()
if v.startswith("CYGWIN"):
config.cygwin = True
elif v.startswith("MINGW32"):
elif v.startswith("MINGW"):
# msys gives "MINGW32"
# msys2 gives "MINGW_NT-6.2"
config.msys = True
else:
raise Exception("Can't detect Windows terminal type")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment