parameters: (output, dir_path, file_paths, prefix, lic, doc_license, allow_unknown_filetypes)
docstring: Create a tar.gz file named `output` from a list of file paths relative to a directory path.
  
      Any appropriate files have the specified license attached.
  
      When creating the tar.gz a standard set of meta-data will be used to help ensure things are consistent.
docstring_summary: Create a tar.gz file named `output` from a list of file paths relative to a directory path.
docstring_tokens: Create a tar . gz file named output from a list of file paths relative to a directory path .
function: def _tar_gz_with_license(output, dir_path, file_paths, prefix, lic, doc_license, allow_unknown_filetypes):
  
      """Create a tar.gz file named `output` from a list of file paths relative to a directory path.
  
      Any appropriate files have the specified license attached.
  
      When creating the tar.gz a standard set of meta-data will be used to help ensure things are consistent.
  
      """
      opener = _LicenseOpener(lic, doc_license, os.getcwd(), allow_unknown_filetypes)
      try:
          with tarfile.open(output, 'w:gz', format=tarfile.GNU_FORMAT) as tarfile_obj:
              tarfile.bltn_open = opener.open
              with chdir(dir_path):
                  for file_path in file_paths:
                      if os.path.isabs(file_path):
                          file_path = os.path.relpath(file_path, dir_path)
                      tarfile_obj.add(file_path, _arc_path_join(prefix, file_path), filter=opener.tar_info_filter)
      finally:
          tarfile.bltn_open = open
function_tokens: def _tar_gz_with_license ( output , dir_path , file_paths , prefix , lic , doc_license , allow_unknown_filetypes ) : opener = _LicenseOpener ( lic , doc_license , os . getcwd ( ) , allow_unknown_filetypes ) try : with tarfile . open ( output , 'w:gz' , format = tarfile . GNU_FORMAT ) as tarfile_obj : tarfile . bltn_open = opener . open with chdir ( dir_path ) : for file_path in file_paths : if os . path . isabs ( file_path ) : file_path = os . path . relpath ( file_path , dir_path ) tarfile_obj . add ( file_path , _arc_path_join ( prefix , file_path ) , filter = opener . tar_info_filter ) finally : tarfile . bltn_open = open