Пример #1
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '1.8.23'
     website = 'http://code.jquery.com/ui/' + version + '/'
     js_file = self.targets[0]
     fetch(website, js_file, js_file)
     return ''
Пример #2
0
 def download(self, environ, version, strict=False):
     file_pattern = 'jquery-*.min.js'
     if version is None:
         version = latest_version('jquery', self.website, file_pattern)
     file_parts = file_pattern.split('*')
     js_file = file_parts[0] + version + file_parts[1]
     fetch(self.website, js_file, self.targets[0])
     return ''
Пример #3
0
 def download(self, environ, version, strict=False):
     if not version:
         version = '1-9-4-1'
     name = 'phpliteAdmin'
     archive = name + '_v' + version + '.zip'
     fetch(self.website, archive, archive)
     unarchive(archive, name)
     return name
 def download(self, environ, version, strict=False):
     website = 'http://pywebsocket.googlecode.com/files/'
     if version is None:
         version = self.version
     src_dir = 'mod_pywebsocket-' + str(version)
     archive = src_dir + '.tar.gz' 
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return os.path.join(src_dir, 'src')
Пример #5
0
 def download(self, environ, version, strict=False):
     website = 'http://pypi.python.org/packages/source/c/ctypesgen/'
     if version is None:
         version = '0.r125'
     src_dir = 'ctypesgen-' + version
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #6
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '1.15'
     website = 'ftp://ftp.gnu.org/gnu/gsl/'
     src_dir = 'gsl-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #7
0
 def download(self, environ, version, strict=False):
     website = 'https://github.com/downloads/matplotlib/matplotlib/'
     if version is None:
         version = self.version
     src_dir = 'matplotlib-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #8
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3071502'
     website = 'http://sqlite.org/'
     src_dir = 'sqlite-autoconf-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #9
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.3.8'
     website = 'http://download.osgeo.org/geos/'
     src_dir = 'geos-' + str(version)
     archive = src_dir + '.tar.bz2'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #10
0
 def download(self, environ, version, strict=False):
     website = 'http://effbot.org/downloads/'
     if version is None:
         version = self.version
     src_dir = 'Imaging-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #11
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = "3.15.4"
     website = "http://downloads.sourceforge.net/project/freeimage/" + "Source%20Distribution/" + str(version) + "/"
     src_dir = "FreeImage"
     archive = src_dir + str(version).replace(".", "") + ".zip"
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #12
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.0.2'
     website = 'http://www.mpich.org/static/tarballs/' + str(version) + '/'
     src_dir = 'mpich-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #13
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = self.version
     website = 'https://github.com/pyjs/pyjs/zipball/'
     archive = 'pyjs-' + version + '.zip'
     src_dir = 'pyjamas-' + str(version)
     fetch(website, version, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #14
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '0.6.5'
     website = 'http://downloads.sourceforge.net/project/wxglade/wxglade/' + version + '/'
     src_dir = 'wxGlade-' + str(version)
     archive = src_dir + '.tar.gz' 
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #15
0
 def download(self, environ, version, strict=False):
     website = 'http://rst2pdf.googlecode.com/files/'
     if version is None:
         version = self.version
     src_dir = 'rst2pdf-' + str(version)
     archive = src_dir + '.tar.gz' 
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #16
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = "3.2.0"
     website = "http://downloads.sourceforge.net/project/fortranxunit" + "/fruit_" + version + "/"
     src_dir = "fruit_" + str(version)
     archive = src_dir + ".tgz"
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #17
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.6'
     website = 'http://dist.schmorp.de/liblzf/Attic/'
     src_dir = 'liblzf-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #18
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '2.30.1'
     website = 'http://www.graphviz.org/pub/graphviz/stable/SOURCES/'
     src_dir = 'graphviz-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #19
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '4.8.0'
     website = 'http://download.osgeo.org/proj/'
     src_dir = 'proj-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #20
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.2'
     website = 'http://llvm.org/releases/' + str(version) + '/'
     src_dir = 'llvm-' + str(version) + '.src'
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #21
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '116'
     website = 'http://downloads.sourceforge.net/project/anttweakbar/'
     src_dir = 'AntTweakBar'
     archive = src_dir + '_' + str(version) + '.zip'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #22
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = self.version
     website = 'http://www.antlr3.org/download/Python/'
     src_dir = 'antlr_python_runtime-' + str(version)
     archive = src_dir + '.tar.gz' 
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #23
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.1.2'
     website = 'http://libarchive.org/downloads/'
     src_dir = 'libarchive-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #24
0
 def download(self, environ, version, strict=False):
     if not version is None:
         self.website = self.website + '/' + version + '/'
     for t in self.targets:
         if is_string(t):
             fetch(self.website, t, t)
         else:
             fetch(self.website + '/' + t[0], t[1], t[1])
     return ''
Пример #25
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = self.version
     website = 'http://downloads.sourceforge.net/project/matplotlib/' + \
               'matplotlib-toolkits/basemap-' + version + '/'
     src_dir = 'basemap-' + str(version)
     archive =  src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #26
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '0.1.4'
     #major = '.'.join(version.split('.')[:2])
     website = 'http://pyyaml.org/download/libyaml/'
     src_dir = 'yaml-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #27
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '2.1-2'
     website = 'http://downloads.sourceforge.net/project/cunit/' + \
               'CUnit/' + str(version) + '/'
     src_dir = 'CUnit-' + str(version) + '-src'
     archive = src_dir + '-src.tar.bz2'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #28
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = self.version
     website = 'http://downloads.sourceforge.net/project/spacepy/' + \
               'spacepy/spacepy-' + str(version) + '/'
     src_dir = 'spacepy-' + str(version)
     archive = src_dir + '.tar.gz' 
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #29
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '1.6.4'
     website = 'http://www.open-mpi.org/software/ompi/v' + \
               '.'.join(version.split('.')[:2]) + '/downloads/'
     src_dir = 'openmpi-' + str(version)
     archive = src_dir + '.tar.gz'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir
Пример #30
0
 def download(self, environ, version, strict=False):
     if version is None:
         version = '3.10.1'
     website = 'http://downloads.sourceforge.net/project/math-atlas/' + \
               'Stable/' + version + '/'
     src_dir = 'atlas'
     archive = src_dir + str(version) + '.tar.bz2'
     fetch(website, archive, archive)
     unarchive(archive, src_dir)
     return src_dir