Detect MSYS2 from Python September 20, 2020 To detect if running under MSYS2 Python, check the parameters described in this GitHub Issue.