Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Integrate PEX interpreter selection based on target-level interpreter compatibility constraints #5160
Pants is unaware of the new pexrc variable
Pants also has no way of passing interpreter compatibility constraints (as specified in a target definition) to a PEX for persistence in PEX-INFO metadata.
Add logic for adding the interpreter compatibility requirements of targets to the v2 Python backend tasks that handle building/running/testing PEXs, and make Pants interpreter selection tasks aware of
Users will now be able to define a list of python interpreters in a pexrc to build/run/test python targets against. The compatibility field in a target will be used to filter candidate interpreters for a lowest-versioned match. PEXs that result from these tasks will contain the compatibility constraints from their respective target definitions in their PEX-INFO metadata.