is there a way to ignore the list of supported Pip...
# general
f
is there a way to ignore the list of supported Pip versions declared in https://github.com/pantsbuild/pants/blob/98bd5a8bcf6a9373b12dbf26191abadd2b1291d5/src/python/pants/backend/python/subsystems/setup.py#L31-L42 (for Pants up to 2.19) and provide a custom one? I am on 2.17/2.18 and need to have a Pip version compatible with Python 3.12
I had hopes for an env var https://github.com/pex-tool/pex/blob/27c2db2bf26039bef41323c964bc4e0317a7b4f5/pex/pip/version.py#L21-L35, but running seems to ignore that variable or it's not being used the way I expect it to be used:
Copy code
$ export _PEX_PIP_VERSION="23.2"; ./pants lint ::                                                                                                                           

17:17:31.92 [INFO] Completed: Building ruff.pex from tools/ruff.lock
17:17:31.98 [ERROR] 1 Exception encountered:

Engine traceback:
  in `lint` goal

ProcessExecutionFailure: Process 'Building ruff.pex from tools/ruff.lock' failed with exit code 1.
stdout:

stderr:
The Pip requested was pip==23.1.2 but it does not work with the interpreter selected which is CPython 3.12.3 at /usr/bin/python3.12. Pip 23.1.2 requires Python <3.12,>=3.7.

Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
oh hold on, pip version is part of the lockfile, this needs to be regenerated
f
Did you manage to regenerate lockfiles? I'm getting
Copy code
stderr:
Failed to spawn a job for /usr/bin/python3.9: unknown error (_ssl.c:3161)
when trying to do that
f
Yes, I did
Progressing with other things first before marking this thread as done lol
f
Ah i'm hitting https://github.com/pantsbuild/pants/issues/20467' for some reason