.
diff --git a/docs/sphinx/_includes/py_console_script_binary.md b/docs/sphinx/_includes/py_console_script_binary.md
index 7373c8a..2f4c6a3 100644
--- a/docs/sphinx/_includes/py_console_script_binary.md
+++ b/docs/sphinx/_includes/py_console_script_binary.md
@@ -4,7 +4,7 @@
Generate a `py_binary` target for a particular console_script `entry_point`
from a PyPI package, e.g. for creating an executable `pylint` target use:
```starlark
-load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
+load("@rules_python//python/pip:py_console_script_binary.bzl", "py_console_script_binary")
py_console_script_binary(
name = "pylint",
diff --git a/python/entry_points/BUILD.bazel b/python/entry_points/BUILD.bazel
index 7ba7058..f0a8c2e 100644
--- a/python/entry_points/BUILD.bazel
+++ b/python/entry_points/BUILD.bazel
@@ -12,6 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+exports_files(
+ [
+ "py_console_script_binary.bzl",
+ ],
+ visibility = ["//docs:__subpackages__"],
+)
+
# Temporary compatibility alias
alias(
name = "py_console_script_binary_bzl",