From ef98515fdfb864916839c4d3cf395a9261ee34e0 Mon Sep 17 00:00:00 2001 From: fsx950223 Date: Fri, 13 Oct 2023 22:56:16 +0800 Subject: [PATCH] fix build --- WORKSPACE | 8 +++++--- requirements.txt | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 23f2dd7a5a..0a77c05b8d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -27,11 +27,12 @@ http_archive( http_archive( name = "rules_python", - sha256 = "84aec9e21cc56fbc7f1335035a71c850d1b9b5cc6ff497306f84cced9a769841", + sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b", strip_prefix = "rules_python-0.26.0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.23.1/rules_python-0.23.1.tar.gz", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz", ) - +load("@rules_python//python:repositories.bzl", "py_repositories") +py_repositories() load("@rules_python//python:repositories.bzl", "python_register_toolchains") load( "@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl", @@ -50,6 +51,7 @@ python_register_toolchains( load("@python//:defs.bzl", "interpreter") load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") + NUMPY_ANNOTATIONS = { "numpy": package_annotation( additive_build_content = """\ diff --git a/requirements.txt b/requirements.txt index 70463d6e32..d060a4762e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ typeguard>=2.7,<3.0.0 -packaging \ No newline at end of file +packaging