Skip to content

Commit

Permalink
fixing bad condition for doc in the mgx and magix3d recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Sep 19, 2023
1 parent eb9d1a1 commit f29978e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions meshing/packages/magix3d/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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'):
Expand Down
4 changes: 2 additions & 2 deletions meshing/packages/mgx/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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'):
Expand Down

0 comments on commit f29978e

Please sign in to comment.