code: def _write_symlink(self, zf, link_target, link_path):
          
          info = zipfile.ZipInfo()
          info.filename = link_path
          info.create_system = 3
          # Magic code for symlinks / py2/3 compat
          # 27166663808 = (stat.S_IFLNK | 0755) << 16
          info.external_attr = 2716663808
          zf.writestr(info, link_target)
docs: Package symlinks with appropriate zipfile metadata.