2009/9/24 Petro Verkhogliad:
>
> I am on OS X 10.5.8. I have 2 version of Python installed. The default
> one provided by Apple, Python 2.5.1. And one I installed from
> MacPorts, Python2.6.2.
>
> The MacVim snapshot is built against Python 2.3.x. So I had to build
> my own version of from source. I followed the instructions on the
> MacVim wiki to build MacVim.app with one exception. I want to build
> against 2.6.2. So I did this:
>
> ./configure --without-x --disable-gpm --disable-nls --with-
> tlib=ncurses --enable-multibyte --enable-rubyinterp --enable-
> pythoninterp --enable-gui=macvim --with-python-config-dir=/opt/local/
> Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config
> && make
>
> This picks up Python 2.6 during the configure and builds the "vim"
> binary. If i start the newly built version of Vim and do:
> :python import sys; print sys.version
>
> it reports this:
> 2.5.1 (r251:54863, Jun 17 2009, 20:37:34)
> [GCC 4.0.1 (Apple Inc. build 5465)]
>
> So, my question is, why does it go to 2.5.1 is there any way to force
> it to use 2.6.2?

Hi Petro,

Well...I don't know _why_ it chooses the wrong version, but you may be
able to edit src/auto/config.mk manually so that it references the
version of Python you want (there are several PYTHON_* variables that
you may have to tweak).

When you do have a Vim binary at hand, the best way to check which
Python version it uses is to open up Terminal and type

otool -L Vim

(in the same directory as the Vim binary, of course).

Good luck,
Björn

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to