code: def temporarily_write_git_hash(git_hash, filename=os.path.join('sockeye', 'git_version.py')):
      
      content = """
  # This file is automatically generated in setup.py
  git_hash = "%s"
  """ % git_hash
      if os.path.exists(filename):
          raise RuntimeError("%s already exists, will not overwrite" % filename)
      with open(filename, "w") as out:
          out.write(content)
      try:
          yield
      except:
          raise
      finally:
          os.remove(filename)
docs: Temporarily create a module git_version in sockeye so that it will be included when installing and packaging.