Hi,

the question is at the end of this post, after the rather lengthy
intro. :)

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? Alternatively, how does vim choose which version of
python to use when one runs ":python"

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

Raspunde prin e-mail lui