Lines Matching +full:download +full:- +full:url
2 # encoding: utf-8
45 'http://downloads.sourceforge.net/project/mingw-w64/Toolchains%20'
46 'targetting%20Win32/Personal%20Builds/mingw-builds/installer/'
48 'http://downloads.sourceforge.net/project/mingwbuilds/host-windows/'
52 A list of mingw-build repositories
57 Downloads and parse mingw-build repository files and parses them
59 log.info('getting mingw-builds repository')
63 for url in urls:
64 log.debug(' - requesting: %s', url)
65 socket = request.urlopen(url)
70 for entry in repo.split('\n')[:-1]:
101 Attempts to find 7zip for unpacking the mingw-build archives
106 key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r'SOFTWARE\7-Zip')
116 Unpacks a mingw-builds archive
120 cmd = [sevenzip, 'x', archive, '-o' + location, '-y']
121 log.debug(' - %r', cmd)
125 def download(url, location, log = EmptyLogger()): function
127 Downloads and unpacks a mingw-builds archive
130 log.debug(' - url: %s', url)
131 log.debug(' - location: %s', location)
135 stream = request.urlopen(url)
137 content = stream.getheader('Content-Disposition') or ''
139 content = stream.headers.getheader('Content-Disposition') or ''
175 Returns the root folder of a specific version of the mingw-builds variant
176 of gcc. Will download the compiler if needed
210 location = os.path.join(tempfile.gettempdir(), 'mingw-builds')
212 # Get the download url
213 url = versions[version][arch][threading][exceptions][revision]
217 log.debug(' - arch: %s', arch)
218 log.debug(' - threading: %s', threading)
219 log.debug(' - exceptions: %s', exceptions)
220 log.debug(' - revision: %s', revision)
221 log.debug(' - url: %s', url)
224 slug = '{version}-{arch}-{threading}-{exceptions}-rev{revision}'
239 # Download if needed
241 downloaded = download(url, os.path.join(location, slug), log = log)
269 parser.add_argument('--location',
270 help = 'the location to download the compiler to',
271 default = os.path.join(tempfile.gettempdir(), 'mingw-builds'))
272 parser.add_argument('--arch', required = True, choices = ['i686', 'x86_64'],
274 parser.add_argument('--version', type = str2ver,
275 help = 'the version of GCC to download')
276 parser.add_argument('--threading', choices = ['posix', 'win32'],
278 parser.add_argument('--exceptions', choices = ['sjlj', 'seh', 'dwarf'],
280 parser.add_argument('--revision', type=int,
283 group.add_argument('-v', '--verbose', action='store_true',
285 group.add_argument('-q', '--quiet', action='store_true',