[TO_STAGE] cartridges: manage distribute_setup.py locally

Stage request for pull request #3873