(self)
Unpacks the archive
Unpacks the archive
Unpacks the archive
def unpack(self):
        """Unpacks the archive"""
        path = self.archive_path
        if path.endswith(".zip"):
            SolverInstaller.unzip(path, directory=self.base_dir)
        elif path.endswith(".tar.bz2"):
            SolverInstaller.untar(path, directory=self.base_dir, mode='r:bz2')
        elif path.endswith(".tar.gz"):
            SolverInstaller.untar(path, directory=self.base_dir)
        else:
            raise ValueError("Unsupported archive for extraction: %s" % path)
def unpack ( self ) : path = self . archive_path if path . endswith ( ".zip" ) : SolverInstaller . unzip ( path , directory = self . base_dir ) elif path . endswith ( ".tar.bz2" ) : SolverInstaller . untar ( path , directory = self . base_dir , mode = 'r:bz2' ) elif path . endswith ( ".tar.gz" ) : SolverInstaller . untar ( path , directory = self . base_dir ) else : raise ValueError ( "Unsupported archive for extraction: %s" % path )