Closed zjturner closed 2 weeks ago
@JakobDegen Do you know anyone who can review this?
I'll import it and try and find someone. Sorry for letting this slip a bit, I've been traveling and so it's a bit harder to keep up with everything going on
@JakobDegen has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
We have a unique python setup. We distribute it hermetically via an internal tool (similar to dotslash), then we set up our
python
toolchain to return aPythonToolchainInfo
whoseinterpreter
andhost_interpreter
fields point to a shell script calledpython_shim.sh
that is created viactx.actions.write()
, in order to properly set up the venv and do some other things to make it hermetic.Later, if you call
python_binary
, it generates a pex file which contains a line like this at the beginning:Presently this is broken because the
cmd_args
to execute the pex file does not have an action dependency on the interpreter, and so it complains that it cannot findpython_shim.h
. This PR makes it work