Remove python2 from third_party/py/BUILD.tpl (#28448)

This commit is contained in:
Lidi Zheng 2021-12-29 14:05:42 -08:00 committed by GitHub
parent dbe73c9004
commit 08bcbee487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -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"],
})

View File

@ -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: