Lines Matching +full:project +full:- +full:slug
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')
62 re_sub = r'http://downloads.sourceforge.net/project/\1'
64 log.debug(' - requesting: %s', 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)
127 Downloads and unpacks a mingw-builds archive
130 log.debug(' - url: %s', url)
131 log.debug(' - location: %s', location)
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
210 location = os.path.join(tempfile.gettempdir(), 'mingw-builds')
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}'
225 slug = slug.format(
233 root_dir = os.path.join(location, slug, 'mingw64')
235 root_dir = os.path.join(location, slug, 'mingw32')
241 downloaded = download(url, os.path.join(location, slug), log = log)
269 parser.add_argument('--location',
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,
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',