mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:10:12 +01:00
I'm treating my PR to mypy bazel integration as dead in the water. Abandoning that approach, this seems to work reasonably well as a replacement. It's actually a slightly newer version of mypy too -- the bazel integration was stuck on an old version. Note I don't think we're losing much: we shouldn't be writing too much python.
28 lines
598 B
Python
Executable File
28 lines
598 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
"""Runs buildozer on arguments.
|
|
|
|
This is provided for other scripts to run buildozer without requiring it be
|
|
manually installed.
|
|
"""
|
|
|
|
__copyright__ = """
|
|
Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
Exceptions. See /LICENSE for license information.
|
|
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
import scripts_utils
|
|
|
|
|
|
def main() -> None:
|
|
buildozer = scripts_utils.get_release(scripts_utils.Release.BUILDOZER)
|
|
os.execv(buildozer, [buildozer] + sys.argv[1:])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|