axom: python only reliably available when +python, +devtools (#33414)

This commit is contained in:
eugeneswalker 2022-10-19 10:41:52 -07:00 committed by GitHub
parent 7ad7fde09c
commit 9f89926980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -449,7 +449,7 @@ def initconfig_package_entries(self):
entries.append("# ClangFormat disabled due to disabled devtools\n")
entries.append(cmake_cache_option("ENABLE_CLANGFORMAT", False))
if spec.satisfies("^python") or "+devtools" in spec:
if "+python" in spec or "+devtools" in spec:
python_path = os.path.realpath(spec["python"].command.path)
for key in path_replacements:
python_path = python_path.replace(key, path_replacements[key])