@@ -447,7 +447,7 @@ def _create_executable(
447447 )
448448
449449def _create_zip_main (ctx , * , stage2_bootstrap , runtime_details , venv ):
450- python_binary = _runfiles_root_path (ctx , venv .interpreter .short_path )
450+ python_binary = runfiles_root_path (ctx , venv .interpreter .short_path )
451451 python_binary_actual = venv .interpreter_actual_path
452452
453453 # The location of this file doesn't really matter. It's added to
@@ -522,7 +522,7 @@ def _create_venv(ctx, output_prefix, imports, runtime_details):
522522
523523 if not venvs_use_declare_symlink_enabled :
524524 if runtime .interpreter :
525- interpreter_actual_path = _runfiles_root_path (ctx , runtime .interpreter .short_path )
525+ interpreter_actual_path = runfiles_root_path (ctx , runtime .interpreter .short_path )
526526 else :
527527 interpreter_actual_path = runtime .interpreter_path
528528
@@ -543,11 +543,11 @@ def _create_venv(ctx, output_prefix, imports, runtime_details):
543543 # may choose to write what symlink() points to instead.
544544 interpreter = ctx .actions .declare_symlink ("{}/bin/{}" .format (venv , py_exe_basename ))
545545
546- interpreter_actual_path = _runfiles_root_path (ctx , runtime .interpreter .short_path )
546+ interpreter_actual_path = runfiles_root_path (ctx , runtime .interpreter .short_path )
547547 rel_path = relative_path (
548548 # dirname is necessary because a relative symlink is relative to
549549 # the directory the symlink resides within.
550- from_ = paths .dirname (_runfiles_root_path (ctx , interpreter .short_path )),
550+ from_ = paths .dirname (runfiles_root_path (ctx , interpreter .short_path )),
551551 to = interpreter_actual_path ,
552552 )
553553
@@ -646,7 +646,7 @@ def _create_stage2_bootstrap(
646646 )
647647 return output
648648
649- def _runfiles_root_path (ctx , short_path ):
649+ def runfiles_root_path (ctx , short_path ):
650650 """Compute a runfiles-root relative path from `File.short_path`
651651
652652 Args:
@@ -676,7 +676,7 @@ def _create_stage1_bootstrap(
676676 runtime = runtime_details .effective_runtime
677677
678678 if venv :
679- python_binary_path = _runfiles_root_path (ctx , venv .interpreter .short_path )
679+ python_binary_path = runfiles_root_path (ctx , venv .interpreter .short_path )
680680 else :
681681 python_binary_path = runtime_details .executable_interpreter_path
682682
0 commit comments