From f29978e9a96812773a733a045046f539ca18e15b Mon Sep 17 00:00:00 2001 From: nicolas le goff Date: Wed, 20 Sep 2023 00:58:45 +0200 Subject: [PATCH] fixing bad condition for doc in the mgx and magix3d recipes --- meshing/packages/magix3d/package.py | 4 ++-- meshing/packages/mgx/package.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meshing/packages/magix3d/package.py b/meshing/packages/magix3d/package.py index a06df26..934b292 100644 --- a/meshing/packages/magix3d/package.py +++ b/meshing/packages/magix3d/package.py @@ -82,7 +82,7 @@ class Magix3d(CMakePackage): # setup PYTHON_PATH for documentation def setup_build_environment(self, env): - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): python_version = str(self.spec['python'].version).split('.') python_dir = "python" + python_version[0] + "." + python_version[1] @@ -119,7 +119,7 @@ def cmake_args(self): args.append('-DBUILD_MAGIX3D:BOOL=ON') args.append('-DBUILD_MAGIX3DBATCH:BOOL=OFF') - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): args.append('-DSPHINX_WARNINGS_AS_ERRORS=OFF') if self.spec['python'].version < Version('3'): diff --git a/meshing/packages/mgx/package.py b/meshing/packages/mgx/package.py index 669d893..a49e8d4 100644 --- a/meshing/packages/mgx/package.py +++ b/meshing/packages/mgx/package.py @@ -66,7 +66,7 @@ class Mgx(CMakePackage): depends_on("py-sphinx-copybutton", when="+doc") def setup_build_environment(self, env): - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): python_version = str(self.spec['python'].version).split('.') python_dir = "python" + python_version[0] + "." + python_version[1] @@ -93,7 +93,7 @@ def cmake_args(self): self.define('DKOC_LICENCE', 'unavailable') ] - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): args.append('-DSPHINX_WARNINGS_AS_ERRORS=OFF') if self.spec.satisfies('%intel'):