square-psychiatrist-19087
11/07/2023, 6:01 PMpants package
. And I don't understand how to test it, shunit2 test can't find the shell script in order to run itbroad-processor-92400
11/07/2023, 6:46 PMpants package
? The shell script copied to dist/
?
For tests, what’s the BUILD file definitions you’re using? And what’s the (attempted) invocation if the script in tests?curved-television-6568
11/07/2023, 6:48 PMsquare-psychiatrist-19087
11/07/2023, 6:53 PMpex_binary
that would store my shell script with all the dependencies:
pex_binary("my-python-script")
shell_binary("my-shell-binary", dependencies=[":my-python-script"])
then I would do pants package my-shell-binary
and then I would execute ./dist/my-shell-binary
and it would run my script and the script would have access to pex_binary that I declared as a dependencycurved-television-6568
11/07/2023, 6:55 PMcurved-television-6568
11/07/2023, 6:55 PMresources
for your pex instead of the other way around..square-psychiatrist-19087
11/07/2023, 6:57 PMscript
config? https://www.pantsbuild.org/docs/reference-pex_binary#codescriptcodesquare-psychiatrist-19087
11/07/2023, 6:58 PMcurved-television-6568
11/07/2023, 7:03 PMscript
field, but what I was referring to was that in order to get the shell scripts into the pex, you need to add them as a resource dependency for your pex binary first.square-psychiatrist-19087
11/07/2023, 7:17 PMdeploy_jar
?curved-television-6568
11/07/2023, 7:47 PMarchive
and unpack that and execute the scripts as you envisioned, and have the jars and pex binaries and what not be part of that archive.square-psychiatrist-19087
11/07/2023, 7:49 PMsquare-psychiatrist-19087
11/08/2023, 10:04 AM