From 03bd8a34edc7d1562cfebee5e322fe92de42a9fe Mon Sep 17 00:00:00 2001 From: Reed Wanderman-Milne Date: Wed, 10 Feb 2021 07:41:07 -0800 Subject: [PATCH] Make default PYTHON_LIB_PATH deterministic. Before, the default PYTHON_LIB_PATH chosen was non-deterministically. This meant if ./configure was rerun and a different PYTHON_LIB_PATH was chosen, bazel would rebuild TF from scratch. PiperOrigin-RevId: 356731041 Change-Id: Iefdebd0f6bb106a598f77e95cd36df87bb1c5d68 --- configure.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.py b/configure.py index ab38cdd901e..de564d5e361 100644 --- a/configure.py +++ b/configure.py @@ -184,6 +184,8 @@ def get_python_path(environ_cp, python_bin_path): ] all_paths = set(python_paths + library_paths) + # Sort set so order is deterministic + all_paths = sorted(all_paths) paths = [] for path in all_paths: