Description: Use_PYTHON_BIN_PATH_env_everywhere
 Otherwise scripts uses "python" and then try to use Python2 modules.
Author: Adam Cecile <acecile@le-vert.net>

---
Origin: other
Last-Update: 2020-10-28

Index: tensorflow-estimator-1.14.0/tensorflow_estimator/tools/pip_package/build_pip_package.sh
===================================================================
--- tensorflow-estimator-1.14.0.orig/tensorflow_estimator/tools/pip_package/build_pip_package.sh
+++ tensorflow-estimator-1.14.0/tensorflow_estimator/tools/pip_package/build_pip_package.sh
@@ -38,7 +38,7 @@ function prepare_src() {
 
   # Verifies all expected files are in pip.
   # Creates init files in all directory in pip.
-  python tensorflow_estimator/tools/pip_package/create_pip_helper.py --pip-root "${TMPDIR}/tensorflow_estimator/" --bazel-root "./tensorflow_estimator"
+  "${PYTHON_BIN_PATH:-python}" tensorflow_estimator/tools/pip_package/create_pip_helper.py --pip-root "${TMPDIR}/tensorflow_estimator/" --bazel-root "./tensorflow_estimator"
 }
 
 function build_wheel() {
