code: def users_bin_dir():
      '''Put custom commands at '~/bin/'
  
      For the conversion of diagrams into the pdf format:
      * dia2pdf, ep2svg, svg2pdf
      * alldia2pdf, allep2svg, alldia2pdf
      '''
      # circumvent circular import, cf. http://stackoverflow.com/a/18486863
      from fabfile.setup import pencil2
      pencil2() # used by ~/bin/ep2svg
      install_packages([
          'dia',
          'inkscape', # used by ~/bin/svg2pdf
          'xsltproc', # used by ~/bin/ep2svg
      ])
      commands = [
          'alldia2pdf',
          'allep2svg',
          'allepgz2ep',
          'allsvg2pdf',
          'dia2pdf',
          'ep2svg',
          'epgz2ep',
          'greypdf',
          'svg2pdf'
      ]
      for command in commands:
          install_user_command_legacy(commandf users_bin_dir():
      '''Put custom commands at '~/bin/'
  
      For the conversion of diagrams into the pdf format:
      * dia2pdf, ep2svg, svg2pdf
      * alldia2pdf, allep2svg, alldia2pdf
      '''
      # circumvent circular import, cf. http://stackoverflow.com/a/18486863
      from fabfile.setup import pencil2
      pencil2() # used by ~/bin/ep2svg
      install_packages([
          'dia',
          'inkscape', # used by ~/bin/svg2pdf
          'xsltproc', # used by ~/bin/ep2svg
      ])
      commands = [
          'alldia2pdf',
          'allep2svg',
          'allepgz2ep',
          'allsvg2pdf',
          'dia2pdf',
          'ep2svg',
          'epgz2ep',
          'greypdf',
          'svg2pdf'
      ]
      for command in commands:
          install_user_command_legacy(command)
docs: Put custom commands at '~/bin/'
  
      For the conversion of diagrams into the pdf format:
      * dia2pdf, ep2svg, svg2pdf
      * alldia2pdf, allep2svg, alldia2pdf