parameters: (self)
docstring: Creates the archive, uncompresses it and tries to build the project
docstring_summary: Creates the archive, uncompresses it and tries to build the project
docstring_tokens: Creates the archive uncompresses it and tries to build the project
function: def check(self):
  		"""
  		Creates the archive, uncompresses it and tries to build the project
  		"""
  		import tempfile, tarfile
  
  		with tarfile.open(self.get_arch_name()) as t:
  			for x in t:
  				t.extract(x)
  
  		instdir = tempfile.mkdtemp('.inst', self.get_base_name())
  		cmd = self.make_distcheck_cmd(instdir)
  		ret = Utils.subprocess.Popen(cmd, cwd=self.get_base_name()).wait()
  		if ret:
  			raise Errors.WafError('distcheck failed with code %r' % ret)
  
  		if os.path.exists(instdir):
  			raise Errors.WafError('distcheck succeeded, but files were left in %s' % instdir)
  
  		shutil.rmtree(self.get_base_name())
function_tokens: def check ( self ) : import tempfile , tarfile with tarfile . open ( self . get_arch_name ( ) ) as t : for x in t : t . extract ( x ) instdir = tempfile . mkdtemp ( '.inst' , self . get_base_name ( ) ) cmd = self . make_distcheck_cmd ( instdir ) ret = Utils . subprocess . Popen ( cmd , cwd = self . get_base_name ( ) ) . wait ( ) if ret : raise Errors . WafError ( 'distcheck failed with code %r' % ret ) if os . path . exists ( instdir ) : raise Errors . WafError ( 'distcheck succeeded, but files were left in %s' % instdir ) shutil . rmtree ( self . get_base_name ( ) )