ignore missing python bindings in llvm 17+

The python bindings to llvm have been removed in version 17, but those
in the clang portion of the project still exist.  This ignores the now
missing llvm bindings but retains the variant to control installing the
clang bindings.
This commit is contained in:
Tom Scogland 2023-11-06 11:44:38 -08:00
parent 8fc1ba2d7a
commit 367abcb801

View File

@ -977,6 +977,8 @@ def post_install(self):
ninja() ninja()
ninja("install") ninja("install")
if "+python" in self.spec: if "+python" in self.spec:
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) install_tree("llvm/bindings/python", python_platlib)
if "+clang" in self.spec: if "+clang" in self.spec: