On 2014-02-08 20:38, Ory Band wrote: > Numerous bugs and issues have been opened in the past few months, because > Macvim fails to build against Homebrew Python. For now Homebrew devs are > forced to use a hack to get around this problem, but the solution should be > very simple on Macvim's side. > > The source of the bug is that Macvim seems to link to Python on build by > `-framework Python` instead of `python-config --ldflags`.
In MacPorts I have been working around this with patches to the configure script. I only took the python versions provided by MacPorts into account, so I was able to remove some cruft for old versions of python. https://trac.macports.org/browser/trunk/dports/editors/MacVim/files/patch-python.diff?rev=111451 https://trac.macports.org/browser/trunk/dports/editors/MacVim/files/patch-python3.diff?rev=111451 Be aware that these are untested with any other python distribution or with the Python.framework versions provided by OS X releases. > 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 Without having too much knowledge about Homebrew, this looks quite error-prone. You search PATH for any python-config, which will have an unknown version. But in the next line you hardcode version 2.7. By the way, the Python detection is the same code in vanilla vim. Why don't you have this change in your formula for vim as well? Rainer -- -- You received this message from the "vim_mac" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_mac" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.