Skip to content

Commit

Permalink
Load python repository into bazel build
Browse files Browse the repository at this point in the history
  • Loading branch information
Volcomix committed Apr 7, 2024
1 parent 99dfe4a commit 9b12f66
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tflite/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ http_archive(
],
)

# Python
http_archive(
name = "rules_python",
sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b",
strip_prefix = "rules_python-0.26.0",
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")

python_register_toolchains(
name = "python",
python_version = "3.11",
)

load("@python//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")

# TensorFlow
local_repository(
name = "org_tensorflow",
Expand Down

0 comments on commit 9b12f66

Please sign in to comment.