[Chapel Merge] Enforce Chapel's prerequisites for Python

Branch: refs/heads/main
Revision: 0025e7bc4619d2567ea592053172865097ee4d20
Author: jabraham17
Link: Enforce Chapel's prerequisites for Python by jabraham17 · Pull Request #27221 · chapel-lang/chapel · GitHub
Log Message:
Enforce Chapel's prerequisites for Python (#27221)

Enforces Chapel's prerequisites for Python in find-python.sh.

We have
documented
that Chapel requires Python 3.5+ and no longer support Python 2, but in
find-python.sh we were still trying to use it. This PR removes that
and adds some better version diagnostics to prevent confusing errors in
the future.

This PR also makes a minor cleanup to chpl_comm.py, to prefer
utils.which over shutil.which

[Reviewed by @arifthpe]

Compare: Comparing 5761dd5cfdf1fa42ff0b986c75c418609533f101...f5b350f5b3b7a5bf13b92a733a2890f51635e80d · chapel-lang/chapel · GitHub

Diff:
M util/chplenv/chpl_comm.py
M util/config/find-python.sh
M util/quickstart/setchplenv.bash
M util/quickstart/setchplenv.csh
M util/quickstart/setchplenv.fish
M util/quickstart/setchplenv.sh
M util/setchplenv.bash
M util/setchplenv.csh
M util/setchplenv.fish
M util/setchplenv.sh
https://github.com/chapel-lang/chapel/pull/27221.diff