parameters: (rooturl, nocheck=False, omega=True, bindings=True, configure_opts=[])
return_statement: return f
docstring: Make a factory for doing builds from tarballs.
docstring_summary: Make a factory for doing builds from tarballs.
docstring_tokens: Make a factory for doing builds from tarballs .
function: def gen_tarball_updated_factory(rooturl, nocheck=False, omega=True, bindings=True, configure_opts=[]):
      """
      Make a factory for doing builds from tarballs.
      """
      configure_cmd = ["sh", "configure", ] + configure_opts
      f = factory.BuildFactory()
      f.addStep(shell.ShellCommand(command = ["python", "-c", "try: import urllib2 as u\nexcept: import urllib.request as u\nopen('get_tarballs.py', 'wb').write(u.urlopen('%s').read())" %
                get_tarballs_url], workdir='.', haltOnFailure=True))
      f.addStep(shell.ShellCommand(command = ["python", 'get_tarballs.py', rooturl], workdir='.', haltOnFailure=True))
      f.addStep(shell.Configure(workdir='build/xapian-core', command=configure_cmd))
      f.addStep(shell.Compile(workdir='build/xapian-core'))
      if not nocheck:
          f.addStep(shell.Test(workdir='build/xapian-core', name="check", command = ["make", "check", "XAPIAN_TESTSUITE_OUTPUT=plain", "VALGRIND=", "AUTOMATED_TESTING=1"]))
      if omega:
          f.addStep(shell.Configure(workdir='build/xapian-omega', command = ["./configure", xapian_config_arg] + configure_opts))
          f.addStep(shell.Compile(workdir='build/xapian-omega'))
          if not nocheck:
              f.addStep(shell.Test(workdir='build/xapian-omega', name="check", command = ["make", "check", "XAPIAN_TESTSUITE_OUTPUT=plain", "VALGRIND=", "AUTOMATED_TESTING=1"]))
      if bindings:
          f.addStep(shell.Configure(workdir='build/xapian-bindings', command = ["./configure", xapian_config_arg] + configure_opts))
          f.addStep(shell.Compile(workdir='build/xapian-bindings', command = ["make"]))
          if not nocheck:
              f.addStep(shell.Test(workdir='build/xapian-bindings', name="check", command = ["make", "check", "XAPIAN_TESTSUITE_OUTPUT=plain", "VALGRIND=", "AUTOMATED_TESTING=1"]))
      # If everything passed, there's not much point keeping the build - we'd
      # delete the old build tree and download new tarballs next time anyway.
      f.addStep(slave.RemoveDirectory('build'))
      return f
function_tokens: def gen_tarball_updated_factory ( rooturl , nocheck = False , omega = True , bindings = True , configure_opts = [ ] ) : configure_cmd = [ "sh" , "configure" , ] + configure_opts f = factory . BuildFactory ( ) f . addStep ( shell . ShellCommand ( command = [ "python" , "-c" , "try: import urllib2 as u\nexcept: import urllib.request as u\nopen('get_tarballs.py', 'wb').write(u.urlopen('%s').read())" % get_tarballs_url ] , workdir = '.' , haltOnFailure = True ) ) f . addStep ( shell . ShellCommand ( command = [ "python" , 'get_tarballs.py' , rooturl ] , workdir = '.' , haltOnFailure = True ) ) f . addStep ( shell . Configure ( workdir = 'build/xapian-core' , command = configure_cmd ) ) f . addStep ( shell . Compile ( workdir = 'build/xapian-core' ) ) if not nocheck : f . addStep ( shell . Test ( workdir = 'build/xapian-core' , name = "check" , command = [ "make" , "check" , "XAPIAN_TESTSUITE_OUTPUT=plain" , "VALGRIND=" , "AUTOMATED_TESTING=1" ] ) ) if omega : f . addStep ( shell . Configure ( workdir = 'build/xapian-omega' , command = [ "./configure" , xapian_config_arg ] + configure_opts ) ) f . addStep ( shell . Compile ( workdir = 'build/xapian-omega' ) ) if not nocheck : f . addStep ( shell . Test ( workdir = 'build/xapian-omega' , name = "check" , command = [ "make" , "check" , "XAPIAN_TESTSUITE_OUTPUT=plain" , "VALGRIND=" , "AUTOMATED_TESTING=1" ] ) ) if bindings : f . addStep ( shell . Configure ( workdir = 'build/xapian-bindings' , command = [ "./configure" , xapian_config_arg ] + configure_opts ) ) f . addStep ( shell . Compile ( workdir = 'build/xapian-bindings' , command = [ "make" ] ) ) if not nocheck : f . addStep ( shell . Test ( workdir = 'build/xapian-bindings' , name = "check" , command = [ "make" , "check" , "XAPIAN_TESTSUITE_OUTPUT=plain" , "VALGRIND=" , "AUTOMATED_TESTING=1" ] ) ) # If everything passed, there's not much point keeping the build - we'd # delete the old build tree and download new tarballs next time anyway. f . addStep ( slave . RemoveDirectory ( 'build' ) ) return f