How would one use remote execution with lockfiles ...
# general
t
How would one use remote execution with lockfiles and venvs? When I run
pants package ...
, it attempts to use the
~/.cache/nce/...
python binary from venv using my local absolute path. Is there a way to specify a remote python binary to use?
Specifically, it appears to be the
PEX_PYTHON
it's trying to grab.
f
Do you control the remote execution environment?
t
I do.
f
Then if you can set up a writable path (outside of the area used for execution sandboxes by your RE server), you can use
--remote-execution-append-only-caches-base-path
to allow Pants to use named caches in remote execution. https://www.pantsbuild.org/stable/reference/global-options#remote_execution_append_only_caches_base_path
Note: REAPI does not support append-only caches ("named caches") used by various Pants logic. And the Pants Python backend makes use of them with Pex.
That option is a Pants-specific work around the REAPI.
t
It kinda works, as it created the
pex_root
and
python_build_standalone
directories, but it's failing on creating what appears to be a directory with no name.
f
Can you open an issue with the logs?
👍 1
t