diff --git a/BUILD.bazel b/BUILD.bazel index 92dda67eb46c..e904264ddcbb 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -20,20 +20,10 @@ package( default_visibility = ["//visibility:public"], ) -# Hermetic python environment, currently only used for CI infra and scripts. - -constraint_setting(name = "hermetic") - -constraint_value( +alias( name = "hermetic_python", - constraint_setting = ":hermetic", -) - -platform( - name = "hermetic_python_platform", - constraint_values = [":hermetic_python"], - parents = ["@local_config_platform//:host"], - visibility = ["//visibility:private"], + actual = "//bazel:py39", + visibility = ["//visibility:public"], ) # C/C++ toolchain constraint configs. diff --git a/WORKSPACE b/WORKSPACE index 52edb07df585..f79703fdaa98 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -95,7 +95,8 @@ register_toolchains("//bazel:py39_toolchain") register_execution_platforms( "@local_config_platform//:host", - "//:hermetic_python_platform", + "//bazel:py39_platform", + "//bazel:py310_platform", ) http_archive( diff --git a/bazel/BUILD.bazel b/bazel/BUILD.bazel index f4ffd3c9efe5..ffd5eca20837 100644 --- a/bazel/BUILD.bazel +++ b/bazel/BUILD.bazel @@ -63,6 +63,8 @@ config_setting( ], ) +# Hermetic python environment, currently only used for CI infra and scripts. + py_runtime( name = "py39_runtime", interpreter = python39, @@ -79,7 +81,7 @@ py_runtime_pair( toolchain( name = "py39_toolchain", - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = [":py39"], toolchain = ":py39_runtime_pair", toolchain_type = "@bazel_tools//tools/python:toolchain_type", ) @@ -100,7 +102,35 @@ py_runtime_pair( toolchain( name = "py310_toolchain", - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = [":py310"], toolchain = ":py310_runtime_pair", toolchain_type = "@bazel_tools//tools/python:toolchain_type", ) + +constraint_setting(name = "python_version") + +constraint_value( + name = "py39", + constraint_setting = ":python_version", + visibility = ["//visibility:public"], +) + +constraint_value( + name = "py310", + constraint_setting = ":python_version", + visibility = ["//visibility:public"], +) + +platform( + name = "py39_platform", + constraint_values = [":py39"], + parents = ["@local_config_platform//:host"], + visibility = ["//visibility:private"], +) + +platform( + name = "py310_platform", + constraint_values = [":py310"], + parents = ["@local_config_platform//:host"], + visibility = ["//visibility:private"], +) diff --git a/ci/lint/BUILD.bazel b/ci/lint/BUILD.bazel index 749e7eca0a98..83cb152588b4 100644 --- a/ci/lint/BUILD.bazel +++ b/ci/lint/BUILD.bazel @@ -3,6 +3,6 @@ load("@rules_python//python:defs.bzl", "py_binary") py_binary( name = "check_bazel_team_owner", srcs = ["check_bazel_team_owner.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], visibility = ["//visibility:private"], ) diff --git a/ci/pipeline/BUILD.bazel b/ci/pipeline/BUILD.bazel index b24e79878a60..54fc17173487 100644 --- a/ci/pipeline/BUILD.bazel +++ b/ci/pipeline/BUILD.bazel @@ -14,7 +14,7 @@ py_test( ":determine_tests_to_run.py", ":test_rules.txt", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/ci/ray_ci/BUILD.bazel b/ci/ray_ci/BUILD.bazel index 3fd28cf0eb5d..1349f9aa1e71 100644 --- a/ci/ray_ci/BUILD.bazel +++ b/ci/ray_ci/BUILD.bazel @@ -42,7 +42,7 @@ py_binary( py_binary( name = "build_in_docker", srcs = ["build_in_docker.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":ray_ci_lib"], ) @@ -56,7 +56,7 @@ py_test( name = "test_linux_container", size = "small", srcs = ["test_linux_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -72,7 +72,7 @@ py_test( name = "test_windows_container", size = "small", srcs = ["test_windows_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -88,7 +88,7 @@ py_test( name = "test_tester", size = "small", srcs = ["test_tester.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -104,7 +104,7 @@ py_test( name = "test_utils", size = "small", srcs = ["test_utils.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -120,7 +120,7 @@ py_test( name = "test_container", size = "small", srcs = ["test_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -135,7 +135,7 @@ py_test( name = "test_builder_container", size = "small", srcs = ["test_builder_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -151,7 +151,7 @@ py_test( name = "test_linux_tester_container", size = "small", srcs = ["test_linux_tester_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -167,7 +167,7 @@ py_test( name = "test_windows_tester_container", size = "small", srcs = ["test_windows_tester_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -183,7 +183,7 @@ py_test( name = "test_ray_docker_container", size = "small", srcs = ["test_ray_docker_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -199,7 +199,7 @@ py_test( name = "test_anyscale_docker_container", size = "small", srcs = ["test_anyscale_docker_container.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -216,7 +216,7 @@ py_test( size = "small", srcs = ["test_bazel_sharding.py"], data = ["mock_BUILD"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/ci/ray_ci/automation/BUILD.bazel b/ci/ray_ci/automation/BUILD.bazel index a56cabe3d4fe..f10c8bf54710 100644 --- a/ci/ray_ci/automation/BUILD.bazel +++ b/ci/ray_ci/automation/BUILD.bazel @@ -18,7 +18,7 @@ py_library( py_binary( name = "determine_microcheck_tests", srcs = ["determine_microcheck_tests.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), ":automation", @@ -28,7 +28,7 @@ py_binary( py_binary( name = "determine_microcheck_step_ids", srcs = ["determine_microcheck_step_ids.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), "//ci/ray_ci:ray_ci_lib", @@ -38,7 +38,7 @@ py_binary( py_binary( name = "test_db_bot", srcs = ["test_db_bot.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), "//ci/ray_ci:ray_ci_lib", @@ -48,7 +48,7 @@ py_binary( py_binary( name = "weekly_green_metric", srcs = ["weekly_green_metric.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("boto3"), ci_require("click"), @@ -59,7 +59,7 @@ py_binary( py_binary( name = "filter_tests", srcs = ["filter_tests.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), "//ci/ray_ci:ray_ci_lib", @@ -78,7 +78,7 @@ py_test( name = "test_update_version_lib", size = "small", srcs = ["test_update_version_lib.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -92,7 +92,7 @@ py_test( py_binary( name = "update_version", srcs = ["update_version.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), ":update_version_lib", @@ -121,7 +121,7 @@ py_test( data = [ "@registry_x86_64//:file", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -145,7 +145,7 @@ py_library( py_test( name = "test_ray_wheels_lib", srcs = ["test_ray_wheels_lib.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -169,7 +169,7 @@ py_library( py_test( name = "test_pypi_lib", srcs = ["test_pypi_lib.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -183,7 +183,7 @@ py_test( py_binary( name = "upload_wheels_pypi", srcs = ["upload_wheels_pypi.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":pypi_lib", ":ray_wheels_lib", @@ -194,7 +194,7 @@ py_binary( py_binary( name = "list_docker_tags", srcs = ["list_docker_tags.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":docker_tags_lib", ci_require("click"), @@ -204,7 +204,7 @@ py_binary( py_binary( name = "generate_index", srcs = ["generate_index.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":docker_tags_lib", ci_require("click"), @@ -214,7 +214,7 @@ py_binary( py_binary( name = "check_nightly_ray_commit", srcs = ["check_nightly_ray_commit.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":docker_tags_lib", ci_require("click"), @@ -225,7 +225,7 @@ py_binary( py_test( name = "test_determine_microcheck_tests", srcs = ["test_determine_microcheck_tests.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -239,7 +239,7 @@ py_test( py_binary( name = "get_contributors", srcs = ["get_contributors.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ci_require("click"), ci_require("pygithub"), diff --git a/ci/ray_ci/bisect/BUILD.bazel b/ci/ray_ci/bisect/BUILD.bazel index e162047b9425..57b0bc6b7e55 100644 --- a/ci/ray_ci/bisect/BUILD.bazel +++ b/ci/ray_ci/bisect/BUILD.bazel @@ -5,7 +5,7 @@ py_binary( name = "bisect_test", srcs = ["bisect_test.py"], data = [":macos_validator"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":bisect"], ) @@ -36,7 +36,7 @@ py_test( name = "test_bisector", size = "small", srcs = ["test_bisector.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -51,7 +51,7 @@ py_test( name = "test_generic_validator", size = "small", srcs = ["test_generic_validator.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/ci/ray_ci/doc/BUILD.bazel b/ci/ray_ci/doc/BUILD.bazel index 4aed0f52537c..8cae4d4e0e5b 100644 --- a/ci/ray_ci/doc/BUILD.bazel +++ b/ci/ray_ci/doc/BUILD.bazel @@ -10,7 +10,7 @@ py_binary( py_binary( name = "cmd_build", srcs = ["cmd_build.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":doc"], ) @@ -42,7 +42,7 @@ py_test( "mock/mock_module.py", "test_module.py", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -61,7 +61,7 @@ py_test( "mock/mock_module.py", "test_api.py", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -80,7 +80,7 @@ py_test( "mock/mock_module.py", "test_autodoc.py", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", @@ -95,7 +95,7 @@ py_test( name = "test_build_cache", size = "small", srcs = ["test_build_cache.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/ci/ray_ci/pipeline/BUILD.bazel b/ci/ray_ci/pipeline/BUILD.bazel index 9835a49bff24..dc3b6ffa0dc3 100644 --- a/ci/ray_ci/pipeline/BUILD.bazel +++ b/ci/ray_ci/pipeline/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") py_binary( name = "scheduler", srcs = ["scheduler.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":pipeline"], ) @@ -26,7 +26,7 @@ py_test( name = "test_gap_filling_scheduler", size = "small", srcs = ["test_gap_filling_scheduler.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/ci/raydepsets/BUILD.bazel b/ci/raydepsets/BUILD.bazel index fa4c2f1777a6..62560e312e83 100644 --- a/ci/raydepsets/BUILD.bazel +++ b/ci/raydepsets/BUILD.bazel @@ -27,7 +27,7 @@ py_library( py_binary( name = "raydepsets", srcs = ["raydepsets.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":raydepsets_lib"], ) @@ -45,7 +45,7 @@ py_test( "tests/test_data/test.depsets.yaml", "tests/test_data/test2.depsets.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "ci_unit", "team:ci", diff --git a/doc/BUILD.bazel b/doc/BUILD.bazel index 0647fded6ce4..50cc72d3c8bb 100644 --- a/doc/BUILD.bazel +++ b/doc/BUILD.bazel @@ -520,7 +520,7 @@ py_test( ["external/*.py"], exclude = ["external/test_hashes.py"], ), - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], main = "external/test_hashes.py", tags = ["team:ml"], deps = [ diff --git a/release/BUILD.bazel b/release/BUILD.bazel index 9d6df4bace9d..cb8db173919d 100644 --- a/release/BUILD.bazel +++ b/release/BUILD.bazel @@ -241,7 +241,7 @@ py_binary( ["**/*.py"], exclude = ["ray_release/tests/*.py"], ), - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [":ray_release"], ) @@ -477,7 +477,7 @@ py_test( name = "test_alerts", size = "small", srcs = ["ray_release/tests/test_alerts.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -492,7 +492,7 @@ py_test( name = "test_anyscale_job_manager", size = "small", srcs = ["ray_release/tests/test_anyscale_job_manager.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -507,7 +507,7 @@ py_test( name = "test_anyscale_job_wrapper", size = "small", srcs = ["ray_release/tests/test_anyscale_job_wrapper.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -536,7 +536,7 @@ py_test( "cluster_tests/cpt_autoscaling_1-3_aws.yaml", "ray_release/tests/test_collection_data.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -555,7 +555,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -574,7 +574,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -592,7 +592,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -610,7 +610,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -631,7 +631,7 @@ py_test( "ray_release/tests/sample_5_tests.yaml", "ray_release/tests/sample_tests.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -646,7 +646,7 @@ py_test( name = "test_cluster_manager", size = "small", srcs = ["ray_release/tests/test_cluster_manager.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -672,7 +672,7 @@ py_test( "//python/ray/autoscaler/azure:test_configs", "//python/ray/autoscaler/gcp:test_configs", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -687,7 +687,7 @@ py_test( name = "test_env", size = "small", srcs = ["ray_release/tests/test_env.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -702,7 +702,7 @@ py_test( name = "test_global_config", size = "small", srcs = ["ray_release/tests/test_global_config.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -718,7 +718,7 @@ py_test( name = "test_glue", size = "small", srcs = ["ray_release/tests/test_glue.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -734,7 +734,7 @@ py_test( name = "test_log_aggregator", size = "small", srcs = ["ray_release/tests/test_log_aggregator.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -749,7 +749,7 @@ py_test( name = "test_result", size = "small", srcs = ["ray_release/tests/test_result.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -770,7 +770,7 @@ py_test( "ray_release/tests/_test_run_release_test_sh.py", "run_release_test.sh", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -785,7 +785,7 @@ py_test( name = "test_state_machine", size = "small", srcs = ["ray_release/tests/test_state_machine.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -800,7 +800,7 @@ py_test( name = "test_kuberay_util", size = "small", srcs = ["ray_release/tests/test_kuberay_util.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -818,7 +818,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -837,7 +837,7 @@ py_test( data = [ "ray_release/configs/oss_config.yaml", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -852,7 +852,7 @@ py_test( name = "test_retry", size = "small", srcs = ["ray_release/tests/test_retry.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -866,7 +866,7 @@ py_test( py_test( name = "test_template", srcs = ["ray_release/tests/test_template.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -880,7 +880,7 @@ py_test( py_test( name = "test_cloud_util", srcs = ["ray_release/tests/test_cloud_util.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], tags = [ "release_unit", "team:ci", @@ -900,7 +900,7 @@ py_binary( "//python/ray/autoscaler/aws:test_configs", "//python/ray/autoscaler/gcp:test_configs", ], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":ray_release", ], @@ -919,7 +919,7 @@ py_library( py_binary( name = "custom_byod_build", srcs = ["ray_release/scripts/custom_byod_build.py"], - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":ray_release", ], @@ -939,7 +939,7 @@ py_binary( name = "custom_image_build_and_test_init", srcs = ["ray_release/scripts/custom_image_build_and_test_init.py"], data = glob(["release_*.yaml"]), - exec_compatible_with = ["//:hermetic_python"], + exec_compatible_with = ["//bazel:py39"], deps = [ ":ray_release", ],