parameters: (self, src, tgt, chmod=Utils.O644)
docstring: See :py:meth:`waflib.Build.InstallContext.do_install`
docstring_summary: See :py:meth:`waflib.Build.InstallContext.do_install`
docstring_tokens: See : py : meth : waflib . Build . InstallContext . do_install
function: def do_install(self, src, tgt, chmod=Utils.O644):
  		"""See :py:meth:`waflib.Build.InstallContext.do_install`"""
  		if not self.progress_bar:
  			Logs.info('- remove %s' % tgt)
  
  		self.uninstall.append(tgt)
  		try:
  			os.remove(tgt)
  		except OSError as e:
  			if e.errno != errno.ENOENT:
  				if not getattr(self, 'uninstall_error', None):
  					self.uninstall_error = True
  					Logs.warn('build: some files could not be uninstalled (retry with -vv to list them)')
  				if Logs.verbose > 1:
  					Logs.warn('Could not remove %s (error code %r)' % (e.filename, e.errno))
  
  		# TODO ita refactor this into a post build action to uninstall the folders (optimization)
  		while tgt:
  			tgt = os.path.dirname(tgt)
  			try:
  				os.rmdir(tgt)
  			except OSError:
  				break
function_tokens: def do_install ( self , src , tgt , chmod = Utils . O644 ) : if not self . progress_bar : Logs . info ( '- remove %s' % tgt ) self . uninstall . append ( tgt ) try : os . remove ( tgt ) except OSError as e : if e . errno != errno . ENOENT : if not getattr ( self , 'uninstall_error' , None ) : self . uninstall_error = True Logs . warn ( 'build: some files could not be uninstalled (retry with -vv to list them)' ) if Logs . verbose > 1 : Logs . warn ( 'Could not remove %s (error code %r)' % ( e . filename , e . errno ) ) # TODO ita refactor this into a post build action to uninstall the folders (optimization) while tgt : tgt = os . path . dirname ( tgt ) try : os . rmdir ( tgt ) except OSError : break