summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch')
-rw-r--r--var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch b/var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch
new file mode 100644
index 0000000000..7007c88d0d
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-matplotlib/freetype-include-path.patch
@@ -0,0 +1,16 @@
+diff --git a/setupext.py b/setupext.py
+index 6d363012eb4..00ef3fe5a3d 100644
+--- a/setupext.py
++++ b/setupext.py
+@@ -162,8 +162,10 @@ def get_include_dirs():
+ """
+ include_dirs = [os.path.join(d, 'include') for d in get_base_dirs()]
+ if sys.platform != 'win32':
+- # gcc includes this dir automatically, so also look for headers in
++ # gcc includes these dirs automatically, so also look for headers in
+ # these dirs
++ include_dirs.extend(
++ os.environ.get('CPATH', '').split(os.pathsep))
+ include_dirs.extend(
+ os.environ.get('CPLUS_INCLUDE_PATH', '').split(os.pathsep))
+ return include_dirs