diff options
author | Matthew Scott Krafczyk <krafczyk.matthew@gmail.com> | 2017-05-02 15:28:46 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-05-02 15:28:46 -0500 |
commit | 70ea990efdcd9f46c0acf5de3aef277c7095144c (patch) | |
tree | df1087448dbd7c02eb1a711b2536d8eda85c9457 | |
parent | 39ddc7d159774184df897d8334c7456f6f52b2cc (diff) | |
download | spack-70ea990efdcd9f46c0acf5de3aef277c7095144c.tar.gz spack-70ea990efdcd9f46c0acf5de3aef277c7095144c.tar.bz2 spack-70ea990efdcd9f46c0acf5de3aef277c7095144c.tar.xz spack-70ea990efdcd9f46c0acf5de3aef277c7095144c.zip |
Add py-pyprof2html package (#4095)
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyprof2html/package.py | 39 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyprof2html/version_0.3.1.patch | 10 |
2 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyprof2html/package.py b/var/spack/repos/builtin/packages/py-pyprof2html/package.py new file mode 100644 index 0000000000..19e3967e35 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyprof2html/package.py @@ -0,0 +1,39 @@ +############################################################################## +# Copyright (c) 2013-2016, 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. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License (as +# published by the Free Software Foundation) version 2.1, February 1999. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and +# conditions of the GNU Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +############################################################################## +from spack import * + + +class PyPyprof2html(PythonPackage): + """Python cProfile and hotshot profile's data to HTML Converter""" + + homepage = "https://pypi.python.org/pypi/pyprof2html/" + url = "https://pypi.io/packages/source/p/pyprof2html/pyprof2html-0.3.1.tar.gz" + + version('0.3.1', 'aa65a1635aac95e0487d7749a6351c43') + + patch('version_0.3.1.patch', when="@0.3.1") + + depends_on('py-setuptools', type='build') + depends_on('py-jinja2', type=('build', 'run')) diff --git a/var/spack/repos/builtin/packages/py-pyprof2html/version_0.3.1.patch b/var/spack/repos/builtin/packages/py-pyprof2html/version_0.3.1.patch new file mode 100644 index 0000000000..fd0e856cb5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyprof2html/version_0.3.1.patch @@ -0,0 +1,10 @@ +diff --git a/pyprof2html/__init__.py b/pyprof2html/__init__.py +index 342eb6d..74b3392 100644 +--- a/pyprof2html/__init__.py ++++ b/pyprof2html/__init__.py +@@ -10,3 +10,5 @@ __licence__ = 'New BSD License' + __author__ = 'Hideo Hattori <hhatto.jp@gmail.com>' + + __all__ = ['Converter', 'pyprof2html_main'] ++ ++__version__ = '0.3.1' |