From 2945ef5072f659878dfd88b421c7b80aa4fb6c80 Mon Sep 17 00:00:00 2001 From: philwo Date: Mon, 23 Aug 2021 07:25:53 -0700 Subject: [PATCH] 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 --- .../build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java index 9a178cee3a9a11..743bb888624bd7 100644 --- a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java +++ b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/python/PyRuntimeInfoApi.java @@ -45,7 +45,7 @@ category = DocCategory.PROVIDER) public interface PyRuntimeInfoApi extends StarlarkValue { - static final String DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python"; + static final String DEFAULT_STUB_SHEBANG = "#!/usr/bin/env python3"; @StarlarkMethod( name = "interpreter_path",