matplotlib/matplotlib — pull request #2282 by mdboom (2013-08-06 16:40:30+00:00)
Title: Extend search path for PyCXX headers

PyCXX headers in Gentoo are installed in /usr/include/pythonX.Y/CXX directory (e.g. /usr/include/python2.7/CXX/Extensions.hxx).
This patch fixes detection of PyCXX in Gentoo:
```
--- setupext.py
+++ setupext.py
@@ -701,6 +701,7 @@
# the header files can be found.
base_include_dirs = [
os.path.join(x, 'include') for x in get_base_dirs()]
+ base_include_dirs += [sysconfig.get_python_inc()]
if has_include_file(base_include_dirs, 'CXX/Extensions.hxx'):
return 'Using system CXX (version unknown, no pkg-config info)'
else:
```