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