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
diff --git a/configure.py b/configure.py
index ab38cdd..de564d5 100644
--- a/configure.py
+++ b/configure.py
@@ -184,6 +184,8 @@
     ]
 
   all_paths = set(python_paths + library_paths)
+  # Sort set so order is deterministic
+  all_paths = sorted(all_paths)
 
   paths = []
   for path in all_paths: