edenzik / macvim

Automatically exported from code.google.com/p/macvim
0 stars 0 forks source link

Python version #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
MacVim appears to be linked against an older version of python, 2.3.5.

To verify this, open MacVim and type:

:python import sys
:python print sys.version

I get the response:
2.3.5 (#1, Oct  9 2007, 20:54:09)
[GCC 4.0.1 (Apple Inc. build 5465)] 

with version 7.1(32) (installed this morning)

I'm using 10.5.3 on a MBP.

And completely separate from the bug report, thanks so much for your work.  I 
can't work 
without vim, and it's nice to have an excellent port for the mac.  Next time 
you're buying a 
computer, I promise to chip in.

Original issue reported on code.google.com by robertlp...@gmail.com on 26 Jun 2008 at 4:47

GoogleCodeExporter commented 9 years ago
I have to link against 2.3 in order for MacVim to run on Mac OS X 10.4 (Tiger) 
since that's the version it ships 
with.  Does this cause any serious problems for you?

Original comment by bjorn.winckler@gmail.com on 26 Jun 2008 at 4:50

GoogleCodeExporter commented 9 years ago
Yeah, there's some language features that don't exist in 2.3 that are
used by some extensions I use (secifically, ropevim -
http://rope.sourceforge.net/ropevim.html).

I guess I could just build my own version. 

Original comment by robertlp...@gmail.com on 26 Jun 2008 at 5:21

GoogleCodeExporter commented 9 years ago
Building your own library should be simple, just follow the instructions on 
this site.  If you have any problems 
just ask on the vim_mac mailing list.

Original comment by bjorn.winckler@gmail.com on 26 Jun 2008 at 5:31

GoogleCodeExporter commented 9 years ago
About that whole python situation: Other apps that have python support (Acorn,
http://flyingmeat.com/acorn/ and NodeBox, 
http://nodebox.net/code/index.php/Home ) do
include the whole python runtime in their Resources folder. This has the 
advantage
that one can be sure which Python version is supported in which Acorn (or 
NodeBox)
version. On the other hand, this means that you cannot use python modules you've
installed on your system in Acorn or NodeBox. And it increases executable size 
quite
a bit.

On windows, the latest python version vim finds is loaded automatically when vim
starts. Perhaps we can do something similar?

Original comment by nicotha...@gmail.com on 27 Jun 2008 at 9:15

GoogleCodeExporter commented 9 years ago
Including the entire Python library seems a bit like overkill to me.  Loading 
the latest version that can be found 
sounds good.  I'd merge such a patch. :-)

Original comment by bjorn.winckler@gmail.com on 27 Jun 2008 at 2:11

GoogleCodeExporter commented 9 years ago
A possible solution is to have 2 downloads, one for Leopard, one for Tiger, 
build against the system python, 
right?

Original comment by orestis on 9 Sep 2008 at 12:29

GoogleCodeExporter commented 9 years ago
Yes, but it means more work for me so I'd avoid that if possible since I 
already have a lot on my plate... :/

Original comment by bjorn.winckler@gmail.com on 9 Sep 2008 at 2:48

GoogleCodeExporter commented 9 years ago
Any news on Python 2.5 integration into MacVim? :)

Original comment by amas...@gmail.com on 20 Jan 2009 at 2:05

GoogleCodeExporter commented 9 years ago
Yes. Bjorn wrote a "load python dynamically" patch, but due to api changes in 
python between 2.3 and 2.5 this is  
a bit tricky. See 
http://groups.google.com/group/vim_mac/browse_thread/thread/1646a8a4430895d7/9bf
d0c7246dac887 for 
the discussion. For now, your best bet is to find an unofficial build with 
python2.5 support or to compile MacVim 
yourself. There seems to be a binary at 
http://billigites.blogspot.com/2008/02/macvim-binary-for-
leopard.html , I don't know if it works though.

Original comment by nicotha...@gmail.com on 20 Jan 2009 at 3:20

GoogleCodeExporter commented 9 years ago
Ok, I see. Thanks for the answers. I have already managed to build MacVim 
quickly and
easily myself. :)

Original comment by amas...@gmail.com on 21 Jan 2009 at 9:44

GoogleCodeExporter commented 9 years ago
Danek Duvall has a patch that lets vim support multiple python versions: 
http://groups.google.com/group/vim_dev/browse_thread/thread/b81d8196605b1dc5

As far as I understand, the idea is to compile if_python.c with different 
python versions and then let vim load the 
if_python files dynamically. We could probably use that for our purposes.

Original comment by nicotha...@gmail.com on 17 Feb 2009 at 12:08

GoogleCodeExporter commented 9 years ago

Original comment by bjorn.winckler@gmail.com on 8 Apr 2009 at 12:57

GoogleCodeExporter commented 9 years ago
Will be a real boon for using Python omnicomplete!  Currently you can only 
complete
buit-ins of the 2.3 Apple distribution.

Thanks for MacVim!

Original comment by dacc.exa...@gmail.com on 13 Apr 2009 at 11:09

GoogleCodeExporter commented 9 years ago
I have published a build of MacVim snapshot 45 with Python 2.5.4 on my blog:
http://amaslov.wordpress.com/2009/06/23/macvim-with-python-2-5/, if there is any
interest I could try to keep an updated version there until I stop re-building 
MacVim
for myself.

Original comment by amas...@gmail.com on 23 Jun 2009 at 12:40

GoogleCodeExporter commented 9 years ago
The snapshots use Python 2.5 as of snapshot 50.

Original comment by bjorn.winckler@gmail.com on 28 Nov 2009 at 6:26