Esempio n. 1
0
    def download(self):
        if not helpers.download(self.url, self.archive):
            return False

        with zipfile.ZipFile(self.archive) as zf:
            zf.extractall()

        self.setDownloaded()
        return True
Esempio n. 2
0
 def download(self):
     if not helpers.download(self.url, self.archive):
         return False
     
     with tarfile.open(self.archive, mode='r:gz') as tf:
         tf.extractall()
     
     self.setDownloaded()
     return True
Esempio n. 3
0
 def download(self):
     archive = "zlib1211.zip"
     url = 'http://www.zlib.net/{}'.format(archive)
     if helpers.download(url, archive):
         self.setDownloaded()
     else:
         return False
     with zipfile.ZipFile(archive) as zf:
         zf.extractall()
     return True
Esempio n. 4
0
    def download(self):
        if helpers.download(self.url, self.archive):
            self.setDownloaded()
        else:
            return False
        with zipfile.ZipFile(self.archive) as zf:
            zf.extractall()

        shutil.move(self.unpackdir, self.path)
        return True
Esempio n. 5
0
 def download(self):
     archive = "boost_1_63_0.zip"
     url = 'https://sourceforge.net/projects/boost/files/boost/1.63.0/{}'.format(
         archive)
     if helpers.download(url, archive):
         self.setDownloaded()
     else:
         return False
     with zipfile.ZipFile(archive) as zf:
         zf.extractall()
     return True