The source of the bug is that Macvim seems to link to Python on build by `-framework Python` instead of `python-config --ldflags`.
Here is Homebrew's Macvim formula for the exact hack-fix, note the Python paragraph at the end: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/macvim.rb#L74
Besides that, please see this issues for more information, they discuss this specific problem:
https://github.com/Homebrew/homebrew/issues/17908
https://github.com/Homebrew/homebrew/issues/26496
https://github.com/Homebrew/homebrew/issues/20075
https://github.com/Homebrew/homebrew/issues/26496
Besides that, several issues have been opened on Macvim's Google Code page:
https://code.google.com/p/macvim/issues/detail?id=458
https://code.google.com/p/macvim/issues/detail?id=451
https://code.google.com/p/macvim/issues/detail?id=450
And another thread in this Google Group has also been opened, asking for a fix: https://groups.google.com/forum/#!searchin/vim_mac/homebrew/vim_mac/Pdb_XNYhPjw/jkZ6C9fXIWEJ
Please fix this, its causing a headache to a lot Macvim & Python users!
The homebrew devs also used this to temporary fix stuff, might be helpful: https://github.com/Homebrew/homebrew/commit/fd2f302cc36ed6402eec20163ba4626a58bc5709#diff-e5bdde8c57ffa74024ffdadd33b5473fR121
This is a really big file and quite overwhelming. Please help!