The Python function all()
was introduced with version 2.5. You are probably compiling with a version where all()
does not exist in the Python language yet.
According to the Python Built-in Functions List, all()
is equivalent to:
def all(iterable):
for element in iterable:
if not element:
return False
return True
You may also need to define any()
. It is the equivalent of:
def any(iterable):
for element in iterable:
if element:
return True
return False
More than likely though, if the setup script requires Python 2.5, so will the rest of the Python wrapper.