llvm: Remove python bindings when >= v17 (#41160)

Co-authored-by: Tom Scogland <scogland1@llnl.gov>
This commit is contained in:
Alec Scott 2023-11-20 06:10:13 -07:00 committed by GitHub
parent 73858df14d
commit 868a3c43e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -983,7 +983,10 @@ def post_install(self):
ninja()
ninja("install")
if "+python" in self.spec:
install_tree("llvm/bindings/python", python_platlib)
if spec.version < Version("17.0.0"):
# llvm bindings were removed in v17:
# https://releases.llvm.org/17.0.1/docs/ReleaseNotes.html#changes-to-the-python-bindings
install_tree("llvm/bindings/python", python_platlib)
if "+clang" in self.spec:
install_tree("clang/bindings/python", python_platlib)