summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Leute <36964815+alex391@users.noreply.github.com>2024-02-11 15:58:23 -0500
committerGitHub <noreply@github.com>2024-02-11 14:58:23 -0600
commitaed5d1a88de642e278866227a596d19351765974 (patch)
tree5ca7c249b9a8285e6551b4f96527024e25d0dd65
parent8b941286257c4a2f55cffa022a0fac8a46b1f2d4 (diff)
downloadspack-aed5d1a88de642e278866227a596d19351765974.tar.gz
spack-aed5d1a88de642e278866227a596d19351765974.tar.bz2
spack-aed5d1a88de642e278866227a596d19351765974.tar.xz
spack-aed5d1a88de642e278866227a596d19351765974.zip
py-gpy: added +plotting variant (#42588)
Co-authored-by: Alex C Leute <aclrc@rit.edu>
-rw-r--r--var/spack/repos/builtin/packages/py-gpy/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gpy/package.py b/var/spack/repos/builtin/packages/py-gpy/package.py
index 18cf0f24ef..172b79277d 100644
--- a/var/spack/repos/builtin/packages/py-gpy/package.py
+++ b/var/spack/repos/builtin/packages/py-gpy/package.py
@@ -19,6 +19,8 @@ class PyGpy(PythonPackage):
version("1.9.9", sha256="04faf0c24eacc4dea60727c50a48a07ddf9b5751a3b73c382105e2a31657c7ed")
version("0.8.8", sha256="e135d928cf170e2ec7fb058a035b5a7e334dc6b84d0bfb981556782528341988")
+ variant("plotting", default=False, description="Enable plotting")
+
depends_on("py-setuptools", type="build")
depends_on("py-numpy@1.7:", type=("build", "run"))
depends_on("py-scipy@0.16:", type=("build", "run"))
@@ -28,6 +30,10 @@ class PyGpy(PythonPackage):
# cython is install_requires, but not used at runtime, so stick to build type
depends_on("py-cython@0.29:", type="build")
+ with when("+plotting"):
+ depends_on("py-matplotlib@3.0:", type=("build", "run"))
+ depends_on("py-plotly@1.8.6:", type=("build", "run"))
+
@run_before("install")
def touch_sources(self):
# This packages uses deprecated build_ext, for which we cannot