summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSeth R. Johnson <johnsonsr@ornl.gov>2019-08-01 18:58:06 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2019-08-01 17:58:06 -0500
commit68d78c0dbef22fdc6ee31bc0fb14e1902cfdae90 (patch)
treeb333cd61c9c8835043ed46ca2b2070864b3fb66e /var
parent46027bea13572edd8b7134733581c12a6c847867 (diff)
downloadspack-68d78c0dbef22fdc6ee31bc0fb14e1902cfdae90.tar.gz
spack-68d78c0dbef22fdc6ee31bc0fb14e1902cfdae90.tar.bz2
spack-68d78c0dbef22fdc6ee31bc0fb14e1902cfdae90.tar.xz
spack-68d78c0dbef22fdc6ee31bc0fb14e1902cfdae90.zip
Fix py-matplotlib build (#12230) (#12234)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-matplotlib/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib/package.py b/var/spack/repos/builtin/packages/py-matplotlib/package.py
index aa1ec19543..df552de40a 100644
--- a/var/spack/repos/builtin/packages/py-matplotlib/package.py
+++ b/var/spack/repos/builtin/packages/py-matplotlib/package.py
@@ -139,6 +139,8 @@ class PyMatplotlib(PythonPackage):
def set_backend(self):
"""Set build options with regards to backend GUI libraries."""
+ backend = self.spec.variants['backend'].value
+
with open('setup.cfg', 'w') as setup:
# Default backend
setup.write('[rc_options]\n')