summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorravil-mobile <ravil.mobile.com@gmail.com>2022-02-11 10:39:24 +0100
committerGitHub <noreply@github.com>2022-02-11 10:39:24 +0100
commit94826a3f1d72bd3ce48497b30e7a5b3f48a756ca (patch)
treecc8178e7769a4295b9e4e58f5c4cd620c6595cec /var
parent73463f61d784235d10ec62e15cfe10186bb0b6e0 (diff)
downloadspack-94826a3f1d72bd3ce48497b30e7a5b3f48a756ca.tar.gz
spack-94826a3f1d72bd3ce48497b30e7a5b3f48a756ca.tar.bz2
spack-94826a3f1d72bd3ce48497b30e7a5b3f48a756ca.tar.xz
spack-94826a3f1d72bd3ce48497b30e7a5b3f48a756ca.zip
pspamm: new package (#28825)
Co-authored-by: ravil <ravil.dorozhinskii@tum.de>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pspamm/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pspamm/package.py b/var/spack/repos/builtin/packages/py-pspamm/package.py
new file mode 100644
index 0000000000..9c385cf7d9
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pspamm/package.py
@@ -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)