mxcl/homebrew — pull request #12134 by claymation (2012-05-07 21:09:04+00:00)
Title: Fix PL/Python build (fixes #11162)

Bug report #6633 opened with PostgreSQL—should appear here after being approved by the list moderator:

http://archives.postgresql.org/pgsql-bugs/2012-05/threads.php

I have tested the Makefile patch under these scenarios:

$ PYTHON=/usr/local/bin/python brew install postgresql
$ PYTHON=/usr/bin/python brew install postgresql
$ brew install postgresql

In the first case, the homebrew (or other custom-built) python is used. In the second case, the system python is used. In the third case, whichever python appears first on PATH is used.