parameters: (self)
return_statement: return self.virtualenv_root
docstring: Build a virtualenv per tree conventions.
  
          This returns the path of the created virtualenv.
docstring_summary: Build a virtualenv per tree conventions.
docstring_tokens: Build a virtualenv per tree conventions .
function: def build(self):
          """Build a virtualenv per tree conventions.
  
          This returns the path of the created virtualenv.
          """
  
          self.create()
  
          # We need to populate the virtualenv using the Python executable in
          # the virtualenv for paths to be proper.
  
          args = [self.python_path, __file__, 'populate', self.topsrcdir,
              self.topobjdir, self.virtualenv_root, self.manifest_path]
  
          result = subprocess.call(args, stdout=self.log_handle,
              stderr=subprocess.STDOUT, cwd=self.topsrcdir)
  
          if result != 0:
              raise Exception('Error populating virtualenv.')
  
          os.utime(self.activate_path, None)
  
          return self.virtualenv_root
function_tokens: def build ( self ) : self . create ( ) # We need to populate the virtualenv using the Python executable in # the virtualenv for paths to be proper. args = [ self . python_path , __file__ , 'populate' , self . topsrcdir , self . topobjdir , self . virtualenv_root , self . manifest_path ] result = subprocess . call ( args , stdout = self . log_handle , stderr = subprocess . STDOUT , cwd = self . topsrcdir ) if result != 0 : raise Exception ( 'Error populating virtualenv.' ) os . utime ( self . activate_path , None ) return self . virtualenv_root