How to build MacVim with Python 2.7

The first few times I tried building MacVim, it kept linking with the system Python. I wanted it to use my Python 2.7 install. I finally found the right incantation:

./configure --enable-rubyinterp=yes --enable-pythoninterp=dynamic --with-python-config-dir=/usr/local/lib/python2.7/config

The --enable-pythoninterp=dynamic was the magic that I needed to make it work.

4 thoughts on “How to build MacVim with Python 2.7

  1. Pingback: vim compiles with wrong python version (and not working with needed version) » Solutions for enthusiast and professional programmers

  2. Pingback: vim compiles with wrong python version (and not working with needed version)

  3. Pingback: vim compiles with wrong python version (and not working with needed version) – PythonCharm

Leave a Reply

Your email address will not be published. Required fields are marked *