Hi! This is a PEX problem - is it possible to get ...
# general
p
Hi! This is a PEX problem - is it possible to get a python process to load the venv which defined by a PEX (better to use the same procrss). Example application is Ray.io lib wheee we want the remote workers the load Venv packaged in a PEX
h
Not sure what you mean by "load a venv"?
PEX can optionally splat itself out into a venv and run from there, if that is helpful
p
That is a good starting point - load an env - what I meant is given a python process and an PEX, “replace” the particular python process venv with the one defined in PEX, ideally - or spinning a new worker/process with the PEX as venv. Is there something I can read?
h
The pex venv is created in some "secret" helper location, I'm not sure if there's a way to create one at a location of your choice
This is an optimization for multiple runs of the same pex
👍 1
future runs will reuse the same venv
p
What is the process to dropping a python process into the context of PEX - I remember before we had a boostrap process that can do that (load a pex)