def show_formats():
 from distutils.fancy_getopt import FancyGetopt
 from distutils.archive_util import ARCHIVE_FORMATS
 formats = []
 for format in ARCHIVE_FORMATS.keys():
  formats.append((('formats=' + format), None, ARCHIVE_FORMATS[format][2]))
 formats.sort()
 pretty_printer = FancyGetopt(formats)
 pretty_printer.print_help('List of available source distribution formats:')

def show_formats ( ) : from distutils . fancy_getopt import FancyGetopt from distutils . archive_util import ARCHIVE_FORMATS formats = [ ] for format in ARCHIVE_FORMATS . keys ( ) : formats . append ( ( ( 'formats=' + format ) , None , ARCHIVE_FORMATS [ format ] [ 2 ] ) ) formats . sort ( ) pretty_printer = FancyGetopt ( formats ) pretty_printer . print_help ( 'List of available source distribution formats:' )
print all possible values for the formats option .