class_docstr: Abstract base class for defining command classes, the "worker bees"
  of the Distutils.  A useful analogy for command classes is to think of
  them as subroutines with local variables called "options".  The options
  are "declared" in 'initialize_options()' and "defined" (given their
  final values, aka "finalized") in 'finalize_options()', both of which
  must be defined by every command class.  The distinction between the
  two is necessary because option values might come from the outside
  world (command line, config file, ...), and any options dependent on
  other options must be computed *after* these outside influences have
  been processed -- hence 'finalize_options()'.  The "body" of the
  subroutine, where it does all its work based on the values of its
  options, is the 'run()' method, which must also be implemented by every
  command class.
class_docstr_tok: ["Abstract","base","class","for","defining","command","classes",",","the","``","worker","bees","''","of","the","Distutils",".","A","useful","analogy","for","command","classes","is","to","think","of","them","as","subroutines","with","local","variables","called","``","options","''",".","The","options","are","``","declared","''","in","'initialize_options","(",")","'","and","``","defined","''","(","given","their","final","values",",","aka","``","finalized","''",")","in","'finalize_options","(",")","'",",","both","of","which","must","be","defined","by","every","command","class",".","The","distinction","between","the","two","is","necessary","because","option","values","might","come","from","the","outside","world","(","command","line",",","config","file",",","...",")",",","and","any","options","dependent","on","other","options","must","be","computed","*","after","*","these","outside","influences","have","been","processed","--","hence","'finalize_options","(",")","'",".","The","``","body","''","of","the","subroutine",",","where","it","does","all","its","work","based","on","the","values","of","its","options",",","is","the","'run","(",")","'","method",",","which","must","also","be","implemented","by","every","command","class","."]
docstr: Determine the sub-commands that are relevant in the current
  distribution (ie., that need to be run).  This is based on the
  'sub_commands' class attribute: each tuple in that list may include
  a method that we call to determine if the subcommand needs to be
  run for the current distribution.  Return a list of command names.
docstr_tok: ["Determine","the","sub-commands","that","are","relevant","in","the","current","distribution","(","ie.",",","that","need","to","be","run",")",".","This","is","based","on","the","'sub_commands","'","class","attribute",":","each","tuple","in","that","list","may","include","a","method","that","we","call","to","determine","if","the","subcommand","needs","to","be","run","for","the","current","distribution",".","Return","a","list","of","command","names","."]
code: def get_sub_commands(self):
      """Determine the sub-commands that are relevant in the current
      distribution (ie., that need to be run).  This is based on the
      'sub_commands' class attribute: each tuple in that list may include
      a method that we call to determine if the subcommand needs to be
      run for the current distribution.  Return a list of command names.
      """
      commands = []
      for cmd_name, method in self.sub_commands:
          if method is None or method(self):
              commands.append(cmd_name)
      return commands
  
imports: import sys, os, re
  from distutils.errors import DistutilsOptionError
  from distutils import util, dir_util, file_util, archive_util, dep_util
  from distutils import log
label_desc: Use image node_id 21 for calling the Command obj's underlying member method code with example usage: obj.get_sub_commands() and returns: commands