message: Making TensorFlow whls manylinux2010 compliant on Linux.
diff: @@ -421,7 +421,7 @@ install_tensorflow_pip() {
  echo "PYTHON_BIN_PATH to be used to install the .whl: ${PYTHON_BIN_PATH}"
  echo "PIP_BIN_PATH to be used to install the .whl: ${PIP_BIN_PATH}"
  - # Upgrade pip so it supports tags such as cp27mu, manylinux1 etc.
  + # Upgrade pip so it supports tags such as cp27mu, manylinux2010 etc.
  echo "Upgrade pip in virtualenv"
  # NOTE: pip install --upgrade pip leads to a documented TLS issue for
  @@ -613,7 +613,7 @@ fi
  WHL_DIR=$(dirname "${WHL_PATH}")
  WHL_BASE_NAME=$(basename "${WHL_PATH}")
  -AUDITED_WHL_NAME="${WHL_DIR}"/$(echo "${WHL_BASE_NAME//linux/manylinux1}")
  +AUDITED_WHL_NAME="${WHL_DIR}"/$(echo "${WHL_BASE_NAME//linux/manylinux2010}")
  # Print the size of the wheel file.
  echo "Size of the PIP wheel file built: $(ls -l ${WHL_PATH} | awk '{print $5}')"
  @@ -626,25 +626,25 @@ for WHL_PATH in $(ls ${PIP_WHL_DIR}/${PROJECT_NAME}*.whl); do
  # Copy and rename for gpu manylinux as we do not want auditwheel to package in libcudart.so
  WHL_PATH=${AUDITED_WHL_NAME}
  cp "${WHL_DIR}"/"${WHL_BASE_NAME}" "${WHL_PATH}"
  - echo "Copied manylinux1 wheel file at ${WHL_PATH}"
  + echo "Copied manylinux2010 wheel file at ${WHL_PATH}"
  else
  if [[ ${OS_TYPE} == "ubuntu" ]]; then
  # Avoid Python3.6 abnormality by installing auditwheel here.
  set +e
  pip3 show auditwheel || "pip${PY_MAJOR_MINOR_VER}" show auditwheel
  - pip3 install auditwheel==1.5.0 || "pip${PY_MAJOR_MINOR_VER}" install auditwheel==1.5.0
  - sudo pip3 install auditwheel==1.5.0 || \
  - sudo "pip${PY_MAJOR_MINOR_VER}" install auditwheel==1.5.0
  + pip3 install auditwheel==2.0.0 || "pip${PY_MAJOR_MINOR_VER}" install auditwheel==2.0.0
  + sudo pip3 install auditwheel==2.0.0 || \
  + sudo "pip${PY_MAJOR_MINOR_VER}" install auditwheel==2.0.0
  set -e
  auditwheel --version
  - # Repair the wheels for cpu manylinux1
  + # Repair the wheels for cpu manylinux2010
  echo "auditwheel repairing ${WHL_PATH}"
  auditwheel repair -w "${WHL_DIR}" "${WHL_PATH}"
  if [[ -f ${AUDITED_WHL_NAME} ]]; then
  WHL_PATH=${AUDITED_WHL_NAME}
  - echo "Repaired manylinux1 wheel file at: ${WHL_PATH}"
  + echo "Repaired manylinux2010 wheel file at: ${WHL_PATH}"
  else
  die "WARNING: Cannot find repaired wheel."
  fi
  