Skip to content

Commit 2945ef5

Browse files
philwocopybara-github
authored andcommitted
Change DEFAULT_STUB_SHEBANG to use python3 instead of python.
This reflects the change in recent Linux distributions that no longer ship a /usr/bin/python binary. I'm not sure where this is actually used, now that if I understand correctly the shebang defaults to the Python binary found via auto-detection, but we should probably still fix this path (or remove this default fallback completely?). Related to #11201. Closes #13851. PiperOrigin-RevId: 392427248
1 parent bafa680 commit 2945ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
category = DocCategory.PROVIDER)
4646
public interface PyRuntimeInfoApi<FileT extends FileApi> extends StarlarkValue {
4747

48-
static final String DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python";
48+
static final String DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python3";
4949

5050
@StarlarkMethod(
5151
name = "interpreter_path",

0 commit comments

Comments
 (0)