I have a project that looks like this: ```root |--...
# general
b
I have a project that looks like this:
Copy code
root
|-- projA
|-----src/....
|-----scripts/run.sh
I would like
pex_binary
to run
scripts/run.sh
as the entry point. I can't seem to figure out how to do that. I tried with setting the
script
field to
./src/run.sh
, but during
pants package
, I get this error:
Could not find script 'scripts/run.sh' in any distribution  within PEX
. Do I need to enable the shell backend and include the file via
shell_sources
? Or is there some other way I'm missing?
b
I have an impression that PEX doesn't support using a shell-script as an entry point... If you can work out how to do it with the
pex
CLI directly, then we can work out how to translate that to Pants. https://docs.pex-tool.org
👍 1
b
Ah... I see the problem. So package without an entry point, and then just run a script as normal with the pex taking care of the dependencies and sources? that can work I guess.