straszheim/catkin — Issue #1: python version fail
Author: ethanrublee
Created: 2011-11-29 01:48:26+00:00
State: open

cat ../cmake/python_version.py
from __future__ import print_function
from sys import version_info as v
print("%u.%u" % (v.major, v.minor))

In [1]: from __future__ import print_function

In [2]: from sys import version_info as v

In [3]: print("%u.%u" % (v.major, v.minor))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)

/home/work/opencv_ros/opencv/catkin/build/ in ()

AttributeError: 'tuple' object has no attribute 'major'

In [5]: v
Out[5]: (2, 6, 5, 'final', 0)