Hi!

Python 3 is a different beast than 2.x, in that it is somewhat
backwards incompatible syntax-wise. "print" in Python 3 is no longer a
special statement but a function. Thus, line 16, 19 and 29 in
<vim7/src/dehqx.py> must be changed to:

    print('In file: ' + input)
    print('  Out data fork: ' + out_data)
        print('  Out rsrc fork: ' + out_rsrc)

for them to work. Fortunately that case works in Python 2 as well
(parens with no comment delims are just scope, thus no "accidental
tuple"). (Starting from Python 2.6+, you can also use "from __future__
import print_function" to switch to this behaviour in 2.x code.)

But as Python 3 is so new and different, I cannot guess what else may
be in need of revision for it to compile against. It'll be interesting
to see.

Otherwise I'd recommend using Python 2.6+, as this line will, and is
officially intended to, continue to flourish (2.7 etc, with backported
3.x-features) for a long time (until every major package runs on 3.x
and beyond).

Best regards,
Niklas


On Tue, Sep 29, 2009 at 10:58 PM, bharath <[email protected]> wrote:
>
> Hi Everyone,
>
> I am trying to compile macvim with python3.1 I am doing it the
> following way
> $./configure --with-python-config-dir=/Library/Frameworks/
> Python.framework/Versions/3.1/bin
>
> and then i run
> $ make
>
> I get the following error . Does anyone know why I am getting this
>
> ink.sh: Linked fine with a few libraries removed
> mkdir -p Vim.app/Contents/Resources/vim
> ln -s `pwd`/../runtime Vim.app/Contents/Resources/vim
> ln: Vim.app/Contents/Resources/vim/runtime: File exists
> make[1]: [bundle-dir] Error 1 (ignored)
> mkdir -p Vim.app/Contents/MacOS
> cp Vim Vim.app/Contents/MacOS/Vim
> Creating PkgInfo
> Creating Info.plist
> m4  -DAPP_EXE=Vim -DAPP_NAME=Vim -DAPP_VER=7.2 infplist.xml > Vim.app/
> Contents/Info.plist
> Creating resource fork
> python dehqx.py os_mac.rsr.hqx
>  File "dehqx.py", line 16
>    print 'In file: ' + input
>                    ^
> SyntaxError: invalid syntax
> make[1]: *** [bundle-rsrc] Error 1
> make: *** [first] Error 2
>
>
> >
>

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

Reply via email to