When installing gr-sparsdr with no swig tool installed, the CMake process finishes with no errors. The code can even be compiled and installed, but the installed package cannot be called from Python because it is missing the swig-generated code things.
The CMake process should abort if swig is not available.