https://pantsbuild.org/ logo
#development
Title
# development
b

bitter-ability-32190

08/17/2022, 10:05 PM
Can someone test
./pants run
on a
pex_binary
with ``use_deprecated_pex_binary_run_semantics` set to
false
? Try it with
layout
set to
packed
. I'm seeing
Error executing interactive process: Permission denied (os error 13)
but can't repro in a sandbox. I suspect we might need more logic to invoke the PEX with
python
?
w

witty-crayon-22786

08/17/2022, 10:13 PM
i repro with
packed
…and yea, that sounds right. the packed layout creates a directory. executing a directory is a non-thing. would need to be invoked as
python $dir
b

bitter-ability-32190

08/17/2022, 10:16 PM
I'm on mobile, feel free to beat me to filing an issue and/or fixing before I'm back tomorrow
w

witty-crayon-22786

08/17/2022, 10:26 PM
e

enough-analyst-54434

08/17/2022, 10:57 PM
For packed (or loose) you can alternately run with either
python pex/
or
./pex/__main__.py
b

bitter-ability-32190

08/17/2022, 11:20 PM
I think running with
python
<PEX>
would make the code layout agnostic which is nice
https://github.com/pantsbuild/pants/pull/16568 I ended up running
__main__.py
. tests took longer than normal to author because the timeout of 400s was capping me often.