Adam, Thank you for the acknowledgement. I didn't know if anyone was even paying attention and was checking the brew pulse daily to see what was going on. Yes, that function is a horrible thing to have to do. If there's an alternative, I'm all ears. But I worked on this for a week, searching for alternatives, and testing it six ways from Sunday. I ended up borrowing this technique from a couple of other formulas. It's nice to finally get some feedback.

I am intrigued by your idea of "patched around." An alternative would be to patch the gribapi distribution itself to create the gribapi.pth. That would have the added advantage of a patch that could be pushed upstream if the gribapi developers ever become inclined to accept such a patch. I assume the brew maintainers would prefer that as well.

Please let me know what you think before I take the time again to go to that extreme. Please also advise if in that case the acceptable procedure is to somehow withdraw this pull request and delete my branch before starting a new branch and submitting a new pull request on the same formula. Thank you for your time and consideration.