def s3_available_compilers(): compilers = defaultdict(lambda: []) for compiler in list_compilers(): match = VERSIONED_RE.match(compiler) if match: compilers[match.group(1)].append(match.group(2)) return compilers
def s3_available_compilers(): global _memoized_compilers if _memoized_compilers is None: _memoized_compilers = defaultdict(lambda: []) for compiler in list_compilers(): match = VERSIONED_RE.match(compiler) if match: _memoized_compilers[match.group(1)].append(match.group(2)) return _memoized_compilers
def s3_available_compilers(): global _memoized_compilers if _memoized_compilers is None: splitter = re.compile(r'^(.*)-([0-9.]+)$') _memoized_compilers = defaultdict(lambda: []) for compiler in list_compilers(): match = splitter.match(compiler) if match: _memoized_compilers[match.group(1)].append(match.group(2)) return _memoized_compilers
def main(): print(" ".join(list_compilers(with_extension=True)))