diff --git a/src/builtin-adapter/WORKSPACE b/src/builtin-adapter/WORKSPACE index 2bc44fc1..22da6e23 100644 --- a/src/builtin-adapter/WORKSPACE +++ b/src/builtin-adapter/WORKSPACE @@ -3,19 +3,6 @@ workspace( ) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0") -load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1") -load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2") -load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") -load( - "@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl", - "python_repository", -) -load("@pypi//:requirements.bzl", "install_deps") -load("@python//:defs.bzl", "interpreter") -load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION") -load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") -load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains") http_archive( name = "bazel_skylib", @@ -47,16 +34,28 @@ http_archive( 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", "python_register_toolchains") + py_repositories() +load( + "@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl", + "python_repository", +) + python_repository(name = "python_version_repo") +load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION") + python_register_toolchains( name = "python", ignore_root_user_error = True, python_version = HERMETIC_PYTHON_VERSION, ) +load("@python//:defs.bzl", "interpreter") +load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") + NUMPY_ANNOTATIONS = { "numpy": package_annotation( additive_build_content = """\ @@ -80,12 +79,22 @@ pip_parse( requirements = "@org_tensorflow//:requirements_lock_" + HERMETIC_PYTHON_VERSION.replace(".", "_") + ".txt", ) +load("@pypi//:requirements.bzl", "install_deps") + install_deps() +load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") + tf_workspace3() +load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2") + tf_workspace2() +load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1") + tf_workspace1() +load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0") + tf_workspace0()