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, 2 Nov 2011 18:18:14 +0000 (18:18 +0000)
commit646142f5136da9cfe2b908703a822c53350f70e9
tree2b38ba4fccc79154e9d5be1aed79179c8d9359f1
parentb4791fd4049d88421b240a17cc6417c0bbf8e795
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.
configure.ac