def get(self): if os.path.exists(self.archive_path): utils.output("%s already present, skipping step." % BASENAME) return utils.goto_archive() utils.urlget(URL)
def get(self): if os.path.exists(self.archive_path): utils.output("SWIG already downloaded, skipping step.") else: utils.goto_archive() utils.urlget(SWIG_URL)
def get(self): if os.path.exists(self.tbfilename): utils.output("%s already present, not downloading." % (SCIPY_ARCHIVE,)) else: utils.goto_archive() utils.urlget(SCIPY_URL, SCIPY_ARCHIVE)
def get(self): if os.path.exists(self.tbfilename): utils.output("%s already present, not downloading." % (SCIPY_ARCHIVE, )) else: utils.goto_archive() utils.urlget(SCIPY_URL, SCIPY_ARCHIVE)
def get(self): if os.path.exists(self.afilename): utils.output("%s already present, not downloading." % (WXP_ARCHIVE, )) else: utils.goto_archive() utils.urlget(WXP_URL) if os.name == 'posix': if not os.path.exists(self.patch1_dst): shutil.copy(self.patch1_src, self.patch1_dst)
def get(self): if os.path.exists(self.afilename): utils.output("%s already present, not downloading." % (WXP_ARCHIVE,)) else: utils.goto_archive() utils.urlget(WXP_URL) if os.name == 'posix': if not os.path.exists(self.patch1_dst): shutil.copy( self.patch1_src, self.patch1_dst)
def get(self): if os.path.exists(self.ez_afilename): utils.output("%s already present, not downloading." % (EZ_BASENAME,)) else: utils.goto_archive() utils.urlget(EZ_SETUP_URL) if os.path.exists(self.pip_afilename): utils.output("%s already present, not downloading." % (PIP_BASENAME,)) else: utils.goto_archive() utils.urlget(PIP_URL)
def get(self): if os.path.exists(self.ipy_afilename): utils.output("%s already present, not downloading." % (IPY_ARCHIVE,)) else: utils.goto_archive() utils.urlget(IPY_URL) if os.name == 'nt': if os.path.exists(self.pyrl_afilename): utils.output("%s already present, not downloading." %\ (PYRL_ARCHIVE,)) else: utils.goto_archive() utils.urlget(PYRL_URL)
def download_python(): urlbase = 'http://python.org/ftp/python/%s' % (PYVER_STR,) if os.name == 'posix': fname = 'Python-%s.tar.bz2' % (PYVER_STR,) url = '%s/%s' % (urlbase, fname) elif os.name == 'nt': if config.WINARCH == '32bit': fname = 'python-%s.msi' % (PYVER_STR,) url = '%s/%s' % (urlbase, fname) else: fname = 'python-%s.amd64.msi' % (PYVER_STR,) url = '%s/%s' % (urlbase, fname) print "##### Bootstrapping with %s Python. #####" % (config.WINARCH,) utils.goto_archive() utils.urlget(url) return fname