Add py-pyprof2html package (#4095)
This commit is contained in:
parent
39ddc7d159
commit
70ea990efd
2 changed files with 49 additions and 0 deletions
39
var/spack/repos/builtin/packages/py-pyprof2html/package.py
Normal file
39
var/spack/repos/builtin/packages/py-pyprof2html/package.py
Normal file
|
@ -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'))
|
|
@ -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'
|
Loading…
Reference in a new issue