summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-matplotlib/package.py
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-01-17 14:14:45 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2018-01-17 14:14:45 -0800
commitc2a10a2aa23f3905ee22bb4b7c79ab963d966a9d (patch)
tree18d502edbbc09b8f9cf255697bd135e9718fb584 /var/spack/repos/builtin/packages/py-matplotlib/package.py
parent52a9e5d2a31b4a66ce51d0ff03ab709417dee6dc (diff)
parentba6c39310b537bbeafd4eb00836623ac2bb19d99 (diff)
downloadspack-c2a10a2aa23f3905ee22bb4b7c79ab963d966a9d.tar.gz
spack-c2a10a2aa23f3905ee22bb4b7c79ab963d966a9d.tar.bz2
spack-c2a10a2aa23f3905ee22bb4b7c79ab963d966a9d.tar.xz
spack-c2a10a2aa23f3905ee22bb4b7c79ab963d966a9d.zip
Merge branch 'releases/v0.11.0'v0.11.0
Diffstat (limited to 'var/spack/repos/builtin/packages/py-matplotlib/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-matplotlib/package.py31
1 files changed, 22 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib/package.py b/var/spack/repos/builtin/packages/py-matplotlib/package.py
index d808b0fc4b..cd9abd2bc1 100644
--- a/var/spack/repos/builtin/packages/py-matplotlib/package.py
+++ b/var/spack/repos/builtin/packages/py-matplotlib/package.py
@@ -1,13 +1,13 @@
##############################################################################
-# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
-# For details, see https://github.com/llnl/spack
-# Please also see the LICENSE file for our notice and the LGPL.
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
@@ -32,8 +32,10 @@ class PyMatplotlib(PythonPackage):
environments across platforms."""
homepage = "https://pypi.python.org/pypi/matplotlib"
- url = "https://pypi.io/packages/source/m/matplotlib/matplotlib-1.4.2.tar.gz"
+ url = "https://pypi.io/packages/source/m/matplotlib/matplotlib-2.0.2.tar.gz"
+ version('2.0.2', '061111784278bde89b5d4987014be4ca')
+ version('2.0.0', '7aa54b06327f0e1c4f3877fc2f7d6b17')
version('1.5.3', 'ba993b06113040fee6628d74b80af0fd')
version('1.5.1', 'f51847d8692cb63df64cd0bd0304fd20')
version('1.4.3', '86af2e3e3c61849ac7576a6f5ca44267')
@@ -58,7 +60,10 @@ class PyMatplotlib(PythonPackage):
extends('python', ignore=r'bin/nosetests.*$|bin/pbr$')
# ------ Required dependencies
- depends_on('py-setuptools', type='build')
+ # Per Github issue #3813, setuptools is required at runtime in order
+ # to make mpl_toolkits a namespace package that can span multiple
+ # directories (i.e., matplotlib and basemap)
+ depends_on('py-setuptools', type=('build', 'run'))
depends_on('libpng@1.2:')
depends_on('freetype@2.3:')
@@ -68,6 +73,8 @@ class PyMatplotlib(PythonPackage):
depends_on('py-pyparsing', type=('build', 'run'))
depends_on('py-pytz', type=('build', 'run'))
depends_on('py-cycler@0.9:', type=('build', 'run'))
+ depends_on('py-subprocess32', type=('build', 'run'), when='^python@:2.7')
+ depends_on('py-functools32', type=('build', 'run'), when='^python@2.7')
# ------ Optional GUI frameworks
depends_on('tk@8.3:', when='+tk') # not 8.6.0 or 8.6.1
@@ -81,13 +88,14 @@ class PyMatplotlib(PythonPackage):
# --------- Optional dependencies
depends_on('pkg-config', type='build') # why not...
depends_on('pil', when='+image', type=('build', 'run'))
- depends_on('py-ipython', when='+ipython')
+ depends_on('py-ipython', when='+ipython', type=('build', 'run'))
depends_on('ghostscript', when='+latex', type='run')
depends_on('texlive', when='+latex', type='run')
# Testing dependencies
- depends_on('py-nose') # type='test'
- depends_on('py-mock') # type='test'
+ # TODO: Add a 'test' deptype
+ # depends_on('py-nose', type='test')
+ # depends_on('py-mock', type='test')
# Required libraries that ship with matplotlib
# depends_on('agg@2.4:')
@@ -95,7 +103,12 @@ class PyMatplotlib(PythonPackage):
# depends_on('ttconv')
depends_on('py-six@1.9.0:', type=('build', 'run'))
- @PythonPackage.sanity_check('install')
+ @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
prefix = self.prefix