diff --git a/test/aspect/BUILD b/test/aspect/BUILD index 31213930..9684794b 100644 --- a/test/aspect/BUILD +++ b/test/aspect/BUILD @@ -1,4 +1,4 @@ -load("@rules_python//python:defs.bzl", "py_library", "py_test") +load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") py_test( name = "result_test", @@ -29,3 +29,8 @@ py_library( name = "python_files", srcs = glob(["**/*.py"]), ) + +py_binary( + name = "foo", + srcs = ["foo.py"], +) diff --git a/test/aspect/MODULE.bazel b/test/aspect/MODULE.bazel index e4200d18..ad39047c 100644 --- a/test/aspect/MODULE.bazel +++ b/test/aspect/MODULE.bazel @@ -97,4 +97,4 @@ bazel_dep( dev_dependency = True, ) -register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") +# register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") diff --git a/test/aspect/foo.py b/test/aspect/foo.py new file mode 100644 index 00000000..1127d566 --- /dev/null +++ b/test/aspect/foo.py @@ -0,0 +1,4 @@ +import sys + +print(sys.version) +print(sys.executable)