REWRITE: Hi, We have a nodejs + python environmen...
# general
b
REWRITE: Hi, We have a nodejs + python environment, where the nodejs code launches python executable that are packaged as pex_binary (using pants). Rebuilding pex binaries can take some time, and is not a suitable solution for our development workflow (where we’d need to rebuild the package on every small code chage). How can we improve the development process?
b
You may be able to make the rebuilds faster using
layout="packed"
on the
pex_binary
targets (https://www.pantsbuild.org/docs/reference-pex_binary#codelayoutcode), although this may require some other tweaks to the process. Do you happen to have more specifics? E.g. is the nodejs code calling pants and then calling the pex_binary it produces, or maybe pants calls the nodejs script that depends on a pex_binary? Or something else? Best case would be an example repository that conveys the sense of what you're doing
b
Thank you. I will give
layout
and
execution_mode
a deeper look.
In terms of specifics - it’s all under construction. My current thought is to find a way to have nodejs (webpack) code depend on the pex_binary one way or another.