python: Correctly check for Python major/minor.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 2 Nov 2011 18:18:14 +0000 (18:18 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 9 Nov 2011 22:05:20 +0000 (22:05 +0000)
commit8ad0974099128748800a86813179bb184c7b0531
treef0c0d9dc935c0da2467c441ba69ddd28fdd31a74
parent7194dae8bc96077a7cfe5b39288448af3c58b3e5
python: Correctly check for Python major/minor.

The manual for sys.version warns that you should not parse the string,
which we were doing.  It would have failed on python "2.10" or
similar.

Do it correctly using the sys.version_info struct instead.
(cherry picked from commit 646142f5136da9cfe2b908703a822c53350f70e9)
configure.ac