runfiles is provided both as part of the Bazel rules_python repository as @rules_python//python:runfiles and on PyPI as the bazel-runfiles pip package.
It could be imported from the Bazel repository as rules_python.python.runfiles when using WORKSPACE, but needed to be imported as python.runfiles when using Bzlmod.
However, the pip package is independent of whether WORKSPACE or Bzlmod is being used.
runfiles
is provided both as part of the Bazelrules_python
repository as@rules_python//python:runfiles
and on PyPI as thebazel-runfiles
pip package.rules_python.python.runfiles
when using WORKSPACE, but needed to be imported aspython.runfiles
when using Bzlmod.