Christoph Reiter added the comment:
(MSYS2 maintainer here) If you run a Python script in MSYS2 bash, the shebang
gets interpreted by bash, which looks up in PATH (which by default doesn't
include the full Windows PATH to avoid conflicts) and if installed leads to the
MSYS2 included CPython
Josh Triplett added the comment:
Correction to the above evaluation of `#!/usr/bin/env python3`, based on some
retesting on Windows systems:
The failure case we encounter reasonably often involves the official Python
installer for Windows, but applies specifically in the case of third-party
New submission from Josh Triplett :
I'm writing this issue on behalf of the Rust project.
The build system for the Rust compiler is a Python 3 script `x.py`, which
orchestrates the build process for a user even if they don't already have Rust
installed. (For instance, `x.py build`, `x.py test