message: Fix sed invocation in copy_binary.py script for Mac.
  Script was explicitly calling /bin/sed which was not being found on MacOS Kokoro builds.
  Removing calling "sed" in script.
diff: @@ -29,13 +29,9 @@ import argparse
  import os
  import re
  import shutil
  -import subprocess
  +import tempfile
  import zipfile
  -UNZIP_CMD = "/usr/bin/unzip"
  -ZIP_CMD = "/usr/bin/zip"
  -SED_CMD = "/bin/sed"
  -
  TF_NIGHTLY_REGEX = r"(.+)tf_nightly(|_gpu)-(\d\.\d\.\d.dev[\d]{0,8})-(.+)\.whl"
  BINARY_STRING_TEMPLATE = "%s-%s-%s.whl"
  @@ -65,26 +61,35 @@ def copy_binary(directory, origin_tag, new_tag, version, gpu=False):
  origin_binary = BINARY_STRING_TEMPLATE % (package, version, origin_tag)
  new_binary = BINARY_STRING_TEMPLATE % (package, version, new_tag)
  zip_ref = zipfile.ZipFile(directory + origin_binary, "r")
  +
  + try:
  + tmpdir = tempfile.mkdtemp()
  + os.chdir(tmpdir)
  +
  zip_ref.extractall()
  zip_ref.close()
  old_py_ver = re.search(r"(cp\d\d-cp\d\d)", origin_tag).group(1)
  new_py_ver = re.search(r"(cp\d\d-cp\d\d)", new_tag).group(1)
  - subprocess.check_call(
  - "%s -i s/%s/%s/g %s-%s.dist-info/WHEEL" % (SED_CMD, old_py_ver,
  - new_py_ver, package, version),
  - shell=True)
  +
  + wheel_file = os.path.join(
  + tmpdir, "%s-%s.dist-info" % (package, version), "WHEEL")
  + with open(wheel_file, "r") as f:
  + content = f.read()
  + with open(wheel_file, "w") as f:
  + f.write(content.replace(old_py_ver, new_py_ver))
  +
  zout = zipfile.ZipFile(directory + new_binary, "w", zipfile.ZIP_DEFLATED)
  zip_these_files = [
  "%s-%s.dist-info" % (package, version),
  - "%s-%s.data" % (package, version)
  + "%s-%s.data" % (package, version),
  ]
  for dirname in zip_these_files:
  for root, _, files in os.walk(dirname):
  for filename in files:
  zout.write(os.path.join(root, filename))
  zout.close()
  - for dirname in zip_these_files:
  - shutil.rmtree(dirname)
  + finally:
  + shutil.rmtree(tmpdir)
  def main():
  