diff options
author | Alex Leute <36964815+alex391@users.noreply.github.com> | 2024-03-20 13:50:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 18:50:52 +0100 |
commit | 8d9d721f07f257e2046ae455fc9ea2ed84e0aa23 (patch) | |
tree | 4af30e27084e0ad8972fb5b40ef13880bdd7ce0f | |
parent | ecef72c47185eb4ee3e8eed0c5448354c16ac30c (diff) | |
download | spack-8d9d721f07f257e2046ae455fc9ea2ed84e0aa23.tar.gz spack-8d9d721f07f257e2046ae455fc9ea2ed84e0aa23.tar.bz2 spack-8d9d721f07f257e2046ae455fc9ea2ed84e0aa23.tar.xz spack-8d9d721f07f257e2046ae455fc9ea2ed84e0aa23.zip |
py-postcactus: new package (#42907)
Co-authored-by: Sid Pendelberry <sid@rit.edu>
-rw-r--r-- | var/spack/repos/builtin/packages/py-postcactus/package.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-postcactus/package.py b/var/spack/repos/builtin/packages/py-postcactus/package.py new file mode 100644 index 0000000000..b33fcbd40a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-postcactus/package.py @@ -0,0 +1,40 @@ +# Copyright 2013-2024 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.package import * + + +class PyPostcactus(PythonPackage): + """This repository contains a Python package named PostCactus for + postprocessing data from numerical simulations performed with the Einstein + Toolkit.""" + + homepage = "https://github.com/wokast/PyCactus" + url = "https://github.com/wokast/PyCactus/archive/refs/tags/2.2.zip" + + version("2.2", sha256="303108835d7652b37f43871c735b99dc7a60c28a24de35a09e9d2bb0f28f93fb") + + # pyproject.toml + depends_on("py-setuptools@40.6.0:", type="build") + # setup.cfg + depends_on("py-h5py", type=("build", "run")) + depends_on("py-numpy", type=("build", "run")) + depends_on("py-scipy", type=("build", "run")) + depends_on("py-future", type=("build", "run")) + depends_on("py-matplotlib", type=("build", "run")) + depends_on("py-tables", type=("build", "run")) + depends_on("py-jupyter", type=("build", "run"), when="+jupyter") + depends_on("vtk", type=("build", "run"), when="+vtk") + + # Variants for the optional requirements in README.md + variant("jupyter", default=False, description="Support for jupyter") + variant("vtk", default=False, description="VTK for 3D plots") + + def patch(self): + # Commenting out build-backend in order to ignore a ModuleNotFoundError + # for setuptools.build-meta + filter_file("^build-backend", "# build-backend", "PostCactus/pyproject.toml") + + build_directory = "PostCactus" |