better-van-82973
08/14/2024, 5:10 PMsetuptools). However, in order to upgrade the tools or regenerate lockfiles with new versions of PEX/Pip, we’d have to drop support for Python 3.7 in the new lockfiles or find another way around the issue.
Related issues: https://github.com/pantsbuild/pants/issues/20852, https://github.com/pantsbuild/pants/issues/20852, https://github.com/pantsbuild/pants/pull/21182, https://github.com/pantsbuild/pants/pull/21235
There are a couple ways I can see around this:
1. Create two separate lockfiles for each tool with different versions of PEX/Pip - one to support Python 3.7 and one to support Python 3.8+. Then infer which lockfile to use based on the interpreter constraints of the targets (?)
2. Drop support for running tools using Python 3.7 (not ideal)
Does anyone here have thoughts on the best way to handle this?happy-kitchen-89482
08/14/2024, 10:27 PMbetter-van-82973
08/14/2024, 10:37 PMhappy-kitchen-89482
08/14/2024, 10:45 PMhappy-kitchen-89482
08/14/2024, 10:46 PMhappy-kitchen-89482
08/14/2024, 10:47 PMhappy-kitchen-89482
08/14/2024, 10:47 PMhappy-kitchen-89482
08/14/2024, 10:47 PMbetter-van-82973
08/14/2024, 10:54 PMbetter-van-82973
08/14/2024, 11:02 PMpip pulled in by PEX doesn’t support 3.7 anymore, so we’d have to use a different version of PEX to generate the older lockfileshappy-kitchen-89482
08/15/2024, 1:02 AMhappy-kitchen-89482
08/15/2024, 1:02 AMhappy-kitchen-89482
08/15/2024, 1:02 AMbetter-van-82973
08/15/2024, 1:19 AMhappy-kitchen-89482
08/15/2024, 3:12 AMcurved-manchester-66006
08/21/2024, 8:24 PMbetter-van-82973
08/21/2024, 8:39 PMwide-midnight-78598
08/21/2024, 10:07 PMbetter-van-82973
08/21/2024, 10:13 PMcurved-manchester-66006
08/22/2024, 12:37 AMIs 2.7 going with it?Nope! If that was confusing from the blog post (as opposed to this thread) could you take a stab at a worksmith suggestion? The difference between "The Python version Pants can build/test" and "The Python versions in the default tool lockfiles" was the goal of the post!
Enforce interpreter constraints of Python 3.8+ for all internal tests within the Pants repoI was leaning towards regenerating everything with >=3.8. I think there is value in being able to work with EOL Python code in Pants, but not in EOL code having a slick out of the box experience.
wide-midnight-78598
08/22/2024, 12:52 AM