One of the features of distcc version 3 is pump mode which allows the slave servers to preprocess as well as compile code from the master. From the shell, this works great for me.
My issue is that I cannot figure out a reliable way to integrate pump mode into an SCons build. I want to:
- Check if distcc's include_server exists (not part of the question, just info)
- Check if distcc's hostlist has
.+,lzo,cpp
hosts required by pump (not a question, info) - Launch the
include_server
as if I were to runpump --startup
from the shell. - Need to catch INCLUDE_SERVER_PORT/PID/DIR and put them into build environment
- build as normal with distcc
- Kill the
include_server
as withpump --shutdown
There seem to be two approaches, using SCons.compat._subprocess
or somehow importing include_server
. I've experimented and googled, but there seems to be no documentation on this use case.
Note: This addresses "plain" distcc, which works well. I'm specifically addressing pump mode.