mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
update to latest rules_python
This commit is contained in:
parent
1315a3a3bb
commit
732c33c2b3
4 changed files with 6 additions and 8 deletions
|
@ -36,7 +36,7 @@ if __name__ == "__main__":
|
|||
# bazel passes in \\?\c:\... path; mypy can't handle it, so we
|
||||
# strip off prefix
|
||||
for entry in sys.path:
|
||||
if entry.endswith("__mypy"):
|
||||
if entry.endswith("deps_mypy"):
|
||||
typeshed = f"{entry[4:]}\\mypy\\typeshed"
|
||||
args.append("--custom-typeshed-dir")
|
||||
args.append(typeshed)
|
||||
|
|
|
@ -17,7 +17,7 @@ def copy_folder(pkgname, path, outbase):
|
|||
shutil.copytree(path, os.path.join(outbase, f"{stubname}-stubs"))
|
||||
|
||||
|
||||
name_re = re.compile("__types_(.+?)$")
|
||||
name_re = re.compile("deps_types_(.+?)$")
|
||||
|
||||
if __name__ == "__main__":
|
||||
outbase = os.path.abspath(sys.argv[1])
|
||||
|
|
|
@ -44,7 +44,7 @@ if __name__ == "__main__":
|
|||
# bazel passes in \\?\c:\... path; mypy can't handle it, so we
|
||||
# strip off prefix
|
||||
for entry in sys.path:
|
||||
if entry.endswith("__mypy"):
|
||||
if entry.endswith("deps_mypy"):
|
||||
typeshed = entry[4:] + "\\mypy\\typeshed"
|
||||
args.append("--custom-typeshed-dir")
|
||||
args.append(typeshed)
|
||||
|
|
|
@ -61,11 +61,9 @@ def register_repos():
|
|||
maybe(
|
||||
http_archive,
|
||||
name = "rules_python",
|
||||
sha256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz",
|
||||
"https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz",
|
||||
],
|
||||
sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502",
|
||||
strip_prefix = "rules_python-0.6.0",
|
||||
url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz",
|
||||
)
|
||||
|
||||
# javascript
|
||||
|
|
Loading…
Reference in a new issue