99load ("@bazel_skylib//rules:common_settings.bzl" , "bool_flag" )
1010load ("@com_github_grpc_grpc//bazel:cython_library.bzl" , "pyx_library" )
1111load ("@hedron_compile_commands//:refresh_compile_commands.bzl" , "refresh_compile_commands" )
12- load ("@python3_9//:defs.bzl" , python39 = "interpreter" )
1312load ("@rules_cc//cc:defs.bzl" , "cc_proto_library" )
1413load ("@rules_pkg//pkg:mappings.bzl" , "pkg_attributes" , "pkg_files" )
1514load ("@rules_pkg//pkg:zip.bzl" , "pkg_zip" )
1615load ("@rules_proto//proto:defs.bzl" , "proto_library" )
17- load ("@rules_python//python:defs.bzl" , "py_binary" , "py_library" , "py_runtime" , "py_runtime_pair" )
16+ load ("@rules_python//python:defs.bzl" , "py_binary" , "py_library" )
1817load ("//bazel:ray.bzl" , "COPTS" , "PYX_COPTS" , "PYX_SRCS" , "ray_cc_library" )
1918
2019package (
@@ -23,34 +22,13 @@ package(
2322
2423# Hermetic python environment, currently only used for CI infra and scripts.
2524
26- py_runtime (
27- name = "python3_runtime" ,
28- interpreter = python39 ,
29- python_version = "PY3" ,
30- visibility = ["//visibility:private" ],
31- )
32-
33- py_runtime_pair (
34- name = "python_runtime_pair" ,
35- py2_runtime = None ,
36- py3_runtime = ":python3_runtime" ,
37- visibility = ["//visibility:private" ],
38- )
39-
4025constraint_setting (name = "hermetic" )
4126
4227constraint_value (
4328 name = "hermetic_python" ,
4429 constraint_setting = ":hermetic" ,
4530)
4631
47- toolchain (
48- name = "python_toolchain" ,
49- exec_compatible_with = [":hermetic_python" ],
50- toolchain = ":python_runtime_pair" ,
51- toolchain_type = "@bazel_tools//tools/python:toolchain_type" ,
52- )
53-
5432platform (
5533 name = "hermetic_python_platform" ,
5634 constraint_values = [":hermetic_python" ],
0 commit comments