Skip to content

Commit

Permalink
Two last vestiges of python_stub_template
Browse files Browse the repository at this point in the history
  • Loading branch information
fahhem committed Nov 22, 2022
1 parent cbfa510 commit bf41746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private static String getZipRunfilesPath(
}
// We put the whole runfiles tree under the ZIP_RUNFILES_DIRECTORY_NAME directory, by doing this
// , we avoid the conflict between default workspace name "__main__" and __main__.py file.
// Note: This name has to be the same with the one in python_stub_template.txt.
// Note: This name has to be the same with the one in python_bootstrap_template.txt.
return ZIP_RUNFILES_DIRECTORY_NAME.getRelative(zipRunfilesPath).toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
public interface PyRuntimeInfoApi<FileT extends FileApi> extends StarlarkValue {

static final String DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python3";
static final String DEFAULT_BOOTSTRAP_TEMPLATE = "//tools/python:python_stub_template.txt";
static final String DEFAULT_BOOTSTRAP_TEMPLATE = "//tools/python:python_bootstrap_template.txt";

@StarlarkMethod(
name = "interpreter_path",
Expand Down Expand Up @@ -127,7 +127,7 @@ public interface PyRuntimeInfoApi<FileT extends FileApi> extends StarlarkValue {
doc =
"The stub script template file to use. Should have %python_binary%, "
+ "%workspace_name%, %main%, and %imports%. See "
+ "@bazel_tools//tools/python:python_stub_template.txt for more variables.")
+ "@bazel_tools//tools/python:python_bootstrap_template.txt for more variables.")
FileT getBootstrapTemplate();

/** Provider type for {@link PyRuntimeInfoApi} objects. */
Expand Down

0 comments on commit bf41746

Please sign in to comment.