If the patch is in pantsbuild/pants master branch then the current runner script at
https://github.com/pantsbuild/setup/blob/gh-pages/pants can take a PANTS_SHA env var and do the right thing. Alternatively, if just for testing, you can run directly from pants sources in a sibling repo (I can post a script that will do that if that's helpful).