def install_remote(self):
        """Download, extract and install NApp."""
        package, pkg_folder = None, None
        try:
            package = self._download()
            pkg_folder = self._extract(package)
            napp_folder = self._get_local_folder(pkg_folder)
            dst = self._installed / self.user / self.napp
            self._check_module(dst.parent)
            shutil.move(str(napp_folder), str(dst))
        finally:
            # Delete temporary files
            if package:
                Path(package).unlink()
            if pkg_folder and pkg_folder.exists():
                shutil.rmtree(str(pkg_folder))
def install_remote ( self ) : package , pkg_folder = None , None try : package = self . _download ( ) pkg_folder = self . _extract ( package ) napp_folder = self . _get_local_folder ( pkg_folder ) dst = self . _installed / self . user / self . napp self . _check_module ( dst . parent ) shutil . move ( str ( napp_folder ) , str ( dst ) ) finally : if package : Path ( package ) . unlink ( ) if pkg_folder and pkg_folder . exists ( ) : shutil . rmtree ( str ( pkg_folder ) )
Download, extract and install NApp.