From 08bcbee4874838ad215c0e6aeaac4f3443bc73ea Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 29 Dec 2021 14:05:42 -0800 Subject: [PATCH] Remove python2 from third_party/py/BUILD.tpl (#28448) --- third_party/py/BUILD.tpl | 7 ------- third_party/py/python_configure.bzl | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/third_party/py/BUILD.tpl b/third_party/py/BUILD.tpl index 8f010f85a03..a64eaeaac6c 100644 --- a/third_party/py/BUILD.tpl +++ b/third_party/py/BUILD.tpl @@ -8,11 +8,6 @@ config_setting( visibility=["//visibility:public"], ) -config_setting( - name="python2", - flag_values = {"@rules_python//python:python_version": "PY2"} -) - config_setting( name="python3", flag_values = {"@rules_python//python:python_version": "PY3"} @@ -21,7 +16,6 @@ config_setting( cc_library( name = "python_lib", deps = select({ - ":python2": ["//_python2:_python2_lib"], ":python3": ["//_python3:_python3_lib"], "//conditions:default": ["not-existing.lib"], }) @@ -30,7 +24,6 @@ cc_library( cc_library( name = "python_headers", deps = select({ - ":python2": ["//_python2:_python2_headers"], ":python3": ["//_python3:_python3_headers"], "//conditions:default": ["not-existing.headers"], }) diff --git a/third_party/py/python_configure.bzl b/third_party/py/python_configure.bzl index 98702bb7abe..4e5218118ee 100644 --- a/third_party/py/python_configure.bzl +++ b/third_party/py/python_configure.bzl @@ -371,8 +371,7 @@ python_configure = repository_rule( ) """Detects and configures the local Python. -It is expected that the system have both a working Python 2 and python 3 -installation +It expects the system have a working Python 3 installation. Add the following to your WORKSPACE FILE: