diff --git a/python/repositories.bzl b/python/repositories.bzl index 498c80f95b..b293b556e9 100644 --- a/python/repositories.bzl +++ b/python/repositories.bzl @@ -234,6 +234,7 @@ def _python_repository_impl(rctx): # tests for the standard libraries. "lib/python{python_version}/**/test/**".format(python_version = python_short_version), "lib/python{python_version}/**/tests/**".format(python_version = python_short_version), + "**/__pycache__/*.pyc.*", # During pyc creation, temp files named *.pyc.NNN are created ] if rctx.attr.ignore_root_user_error: @@ -243,7 +244,6 @@ def _python_repository_impl(rctx): # the definition of this filegroup will change, and depending rules will get invalidated." # See https://github.com/bazelbuild/rules_python/issues/1008 for unconditionally adding these to toolchains so we can stop ignoring them." "**/__pycache__/*.pyc", - "**/__pycache__/*.pyc.*", # During pyc creation, temp files named *.pyc.NNN are created "**/__pycache__/*.pyo", ]