sz: fix for external python sitelib (#26067)

fixes #25973
This commit is contained in:
Robert Underwood 2021-09-30 14:52:20 -04:00 committed by GitHub
parent af54f7b15b
commit 7694c58736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,7 @@ def cmake_args(self):
if "+python" in self.spec:
args.append("-DBUILD_PYTHON_WRAPPER=ON")
args.append("-DSZ_PYTHON_SITELIB={0}".format(site_packages_dir))
else:
args.append("-DBUILD_PYTHON_WRAPPER=OFF")