bugfix for conduit py module install path (#23057)

* add lost logic for setting python install dir

* conduit: fix missing pass of python install path during build
This commit is contained in:
Cyrus Harrison 2021-04-16 18:16:09 -07:00 committed by GitHub
parent 117857ec72
commit d22f4fc983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,6 +422,9 @@ def hostconfig(self, spec, prefix):
cfg.write("# python from spack \n")
cfg.write(cmake_cache_entry("PYTHON_EXECUTABLE",
spec['python'].command.path))
cfg.write("# python module install dir\n")
cfg.write(cmake_cache_entry("PYTHON_MODULE_INSTALL_PREFIX",
site_packages_dir))
else:
cfg.write(cmake_cache_entry("ENABLE_PYTHON", "OFF"))