TriBITSPub / TriBITS

TriBITS: Tribal Build, Integrate, and Test System,
http://tribits.org
Other
36 stars 47 forks source link

TriBITS Python scripts do not work on some modern Linux distributions #607

Open sebrowne opened 1 month ago

sebrowne commented 1 month ago

As per https://peps.python.org/pep-0394, python may not exist on some modern Linux operating systems. The particular one in question here is RHEL8. If you install one of the python3 packages, you do get python3, but not python. As per the PEP, I think it wise to discontinue use of python, given the end-of-life of Python 2.

This specifically applies to the use of the #!/usr/bin/env python idiom present in many of the TriBITS Python scripts. This is causing issues for the Trilinos AutoTester on RHEL8.

bartlettroscoe commented 1 month ago

Yup, TriBITS Python code was updated to Python3 years ago, and enough years have gone by that Python3 is universally available (especially with the switch to RHEL8 at SNL). (NOTE: Python 2.7 was the default Python for RHEL7, see here!)