Fix matplotlib build issue with intel compiler (#5321)

This commit is contained in:
Pramod S Kumbhar 2017-09-11 01:15:12 +02:00 committed by Todd Gamblin
parent b14b02f875
commit f5f51118b8

View File

@ -103,6 +103,11 @@ class PyMatplotlib(PythonPackage):
# depends_on('ttconv')
depends_on('py-six@1.9.0:', type=('build', 'run'))
@run_before('build')
def set_cc(self):
if self.spec.satisfies('%intel'):
env['CC'] = spack_cxx
@run_after('install')
def set_backend(self):
spec = self.spec