Fix assumption of linux platform in py-tensorflow (#49425)

post_configure_fixes assumed py-tensorflow depends on patchelf, but that dependency is platform dependent.
This commit is contained in:
Thomas Dickerson
2025-03-12 16:05:17 -04:00
committed by GitHub
parent f89a2ada4c
commit 28341ef0a9

View File

@@ -828,7 +828,7 @@ def configure(self, spec, prefix):
def post_configure_fixes(self):
spec = self.spec
if spec.satisfies("@2.17:"):
if spec.satisfies("@2.17:") and ("patchelf" in spec):
filter_file(
"patchelf",
spec["patchelf"].prefix.bin.patchelf,