[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] igraph0.6 & python2.5

From: Tamás Nepusz
Subject: Re: [igraph] igraph0.6 & python2.5
Date: Wed, 15 Dec 2010 00:05:05 +0100


> I tried to compile the last version on igraph0.6 (from lp)  and I had a 
> problem compiling igraph-python with python 2.5 :
> the 2 macros : Py_TYPE and PyVarObject_HEAD_INIT are not defined in python2.5.
Thanks for reporting that; I've started using these macros when I was tweaking 
the code to run on Python 3.x and Python 2.x as well, not knowing that these 
are not available in Python 2.5. I've added your patch to py2compat.h instead 
of common.h.

> Do you plan to make igraph0.6 compatible with python2.5 or just >=2.6 ?
I haven't tested igraph 0.6 on Python 2.5 for a while, so I don't know whether 
it still works on 2.5 or not. As for supporting Python 2.6 for the next 
release: I haven't decided yet, but I was slightly leaning towards dropping 
Python 2.5 support as there are quite a few nice features in Python 2.6 that 
would make igraph's Python code easier to maintain; for instance, "print" 
became a function in Python 3, and this behaviour can be turned on in Python 
2.6 using "from __future__ import print_function" (meaning that I don't have to 
maintain two separate codebases, one for Python 2.x and one for Python 3.x). 
So, why would you like to stick to Python 2.5 instead of moving on to Python 
2.6 at least? Of course I will keep on maintaining a version for Python 2.5 if 
the users stand up for it :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]