BLD: sparse: check return value of generate_sparsetools.py on build time