From 8412887ba43e5e167d9e3a962e41710bd9a4f4de Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Fri, 16 Dec 2022 17:18:19 -0500 Subject: [PATCH] build_tf.py: export `LD_LIBRARY_PATH` when executing `configure` In some machines, this is required for Python. Signed-off-by: Jinzhe Zeng --- source/install/build_tf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/source/install/build_tf.py b/source/install/build_tf.py index 14ef003055..0ede567442 100755 --- a/source/install/build_tf.py +++ b/source/install/build_tf.py @@ -576,6 +576,7 @@ def build(self): # configure -- need bazelisk in PATH call([str(src / "configure")], env={ "PATH": list2env([PREFIX / "bin", "/usr/bin", "/bin"]), + "LD_LIBRARY_PATH": os.environ.get("LD_LIBRARY_PATH", ""), **self._environments, }) # bazel build