From 31d6e7a901899a1affccf1e1b0a761ad96c7d425 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 7 Oct 2024 02:47:07 -0500 Subject: actsvg: new variant +python (#46794) --- var/spack/repos/builtin/packages/actsvg/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/actsvg/package.py b/var/spack/repos/builtin/packages/actsvg/package.py index 8da35273f4..beaf832209 100644 --- a/var/spack/repos/builtin/packages/actsvg/package.py +++ b/var/spack/repos/builtin/packages/actsvg/package.py @@ -41,6 +41,7 @@ class Actsvg(CMakePackage): variant("examples", default=False, description="Build the example applications") variant("meta", default=True, description="Build the meta level interface") + variant("python", default=True, when="@0.4.39:", description="Build the python bindings") variant( "web", default=True, when="@0.4.36:", description="Build the webpage builder interface" ) @@ -48,11 +49,13 @@ class Actsvg(CMakePackage): depends_on("boost +program_options", type="test") depends_on("boost +program_options", when="+examples") depends_on("googletest", when="+examples") + depends_on("python@3.8:", when="+python") def cmake_args(self): args = [ self.define_from_variant("ACTSVG_BUILD_EXAMPLES", "examples"), self.define_from_variant("ACTSVG_BUILD_META", "meta"), + self.define_from_variant("ACTSVG_BUILD_PYTHON_BINDINGS", "python"), self.define_from_variant("ACTSVG_BUILD_WEB", "web"), self.define("ACTSVG_BUILD_TESTING", self.run_tests), ] -- cgit v1.2.3-70-g09d2