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:11:29 +0000 (22:11 +0000)
commit408c28f588adc884e9e0cb2358426a703f52d733
tree56ceb71f9c7ada64bce5d12f26430723bea8899e
parent23ec87984b9a204665e547fd9d2848e6cf51647a
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