@@ -63,7 +63,6 @@ bzl_library(
6363
6464def _internal_config_repo_impl (rctx ):
6565 pystar_requested = _bool_from_environ (rctx , _ENABLE_PYSTAR_ENVVAR_NAME , _ENABLE_PYSTAR_DEFAULT )
66- deprecation_warnings_requested = _bool_from_environ (rctx , _ENABLE_DEPRECATION_WARNINGS_ENVVAR_NAME , _ENABLE_DEPRECATION_WARNINGS_DEFAULT )
6766
6867 # Bazel 7+ (dev and later) has native.starlark_doc_extract, and thus the
6968 # py_internal global, which are necessary for the pystar implementation.
@@ -72,8 +71,6 @@ def _internal_config_repo_impl(rctx):
7271 else :
7372 enable_pystar = False
7473
75- enable_deprecation_warnings = deprecation_warnings_requested
76-
7774 if not native .bazel_version or int (native .bazel_version .split ("." )[0 ]) >= 8 :
7875 builtin_py_info_symbol = "None"
7976 builtin_py_runtime_info_symbol = "None"
@@ -85,7 +82,7 @@ def _internal_config_repo_impl(rctx):
8582
8683 rctx .file ("rules_python_config.bzl" , _CONFIG_TEMPLATE .format (
8784 enable_pystar = enable_pystar ,
88- enable_deprecation_warnings = enable_deprecation_warnings ,
85+ enable_deprecation_warnings = _bool_from_environ ( rctx , _ENABLE_DEPRECATION_WARNINGS_ENVVAR_NAME , _ENABLE_DEPRECATION_WARNINGS_DEFAULT ) ,
8986 builtin_py_info_symbol = builtin_py_info_symbol ,
9087 builtin_py_runtime_info_symbol = builtin_py_runtime_info_symbol ,
9188 builtin_py_cc_link_params_provider = builtin_py_cc_link_params_provider ,
0 commit comments