gobject-introspection should require python 2.7.9
Submitted by Rafal Luzynski
Link to original bug (#766376)
Description
Due to this bug: https://bugs.python.org/issue21923 which has been fixed in Python 2.7.9 gobject-introspection now should require at least Python 2.7.9.
Otherwise, when building gobject-introspection with jhbuild I get this traceback:
GICOMP gir/win32-1.0.gir
GICOMP gir/cairo-1.0.gir
Traceback (most recent call last):
File "./g-ir-scanner", line 66, in `<module>`
sys.exit(scanner_main(sys.argv))
File "./giscanner/scannermain.py", line 535, in scanner_main
ss = create_source_scanner(options, args)
File "./giscanner/scannermain.py", line 443, in create_source_scanner
ss.parse_files(filenames)
File "./giscanner/sourcescanner.py", line 262, in parse_files
self._parse(headers)
File "./giscanner/sourcescanner.py", line 291, in _parse
cc = CCompiler()
File "./giscanner/ccompiler.py", line 75, in __init__
customize_compiler(self.compiler)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/sysconfig.py", line 176, in customize_compiler
if not _config_vars.get('CUSTOMIZED_OSX_COMPILER', ''):
AttributeError: 'NoneType' object has no attribute 'get'
make[2]: *** [GLib-2.0.gir] Error 1
make[1]: *** [all-recursive] Error 1
After upgrading Python has compiled smoothly.
The bug has been exposed by this commit: https://git.gnome.org/browse/gobject-introspection/commit/?id=0638f9f which starts using customize_compiler() function which was buggy and crashed if called too early.
This bug is probably not a problem on Fedora but may be a problem when compiling from source on other distros or non-Linux platforms (I spotted this on OS X 10.10 Yosemite) which do not provide the most recent Python out of the box.
See also: bug 698617 (similar), bug 728313 (introduced this problem).