pspamm: new package (#28825)
Co-authored-by: ravil <ravil.dorozhinskii@tum.de>
This commit is contained in:
parent
73463f61d7
commit
94826a3f1d
31
var/spack/repos/builtin/packages/py-pspamm/package.py
Normal file
31
var/spack/repos/builtin/packages/py-pspamm/package.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
||||||
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
|
|
||||||
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
|
class PyPspamm(PythonPackage):
|
||||||
|
"""Code Generator for Small Sparse Matrix Multiplication"""
|
||||||
|
|
||||||
|
homepage = "https://github.com/SeisSol/PSpaMM/blob/master/README.md"
|
||||||
|
git = "https://github.com/SeisSol/PSpaMM.git"
|
||||||
|
|
||||||
|
maintainers = ['ravil-mobile']
|
||||||
|
|
||||||
|
version('develop', branch='master')
|
||||||
|
|
||||||
|
variant('numpy', default=False, description="installs numpy")
|
||||||
|
variant('scipy', default=False, description="installs scipy")
|
||||||
|
|
||||||
|
depends_on('py-numpy', when='+numpy')
|
||||||
|
depends_on('py-scipy', when='+scipy')
|
||||||
|
|
||||||
|
def install(self, spec, prefix):
|
||||||
|
install_tree('.', prefix)
|
||||||
|
|
||||||
|
def setup_run_environment(self, env):
|
||||||
|
env.prepend_path('PATH', self.spec.prefix)
|
||||||
|
env.prepend_path('PYTHONPATH', self.spec.prefix)
|
Loading…
Reference in New Issue
Block a user