Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Revert unnecessary runtime check for valid Python interpreter #7451
Pants developers run Pants differently than end users do. Whereas they either download the wheel from PyPi or use a Pex, developers build from source. This allows us to run Pants with any Python version we'd like.
Due to a misunderstanding thinking this meant end users could also run Pants with any Python interpreter they wanted, we added in #7365 a runtime check to ensure they use 2.7 or 3.6+.
However, we realized it is impossible (or at least extremely unlikely) that end users will run Pants with an invalid interpreter, due to install time checks, as follows:
Thus, the runtime check is unnecessary.
Remove the runtime check.
Less code and slightly faster performance due to one less check.