Skip to content

Commit

Permalink
Change DEFAULT_STUB_SHEBANG to use python3 instead of python.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
philwo authored and copybara-github committed Aug 23, 2021
1 parent bafa680 commit 2945ef5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
category = DocCategory.PROVIDER)
public interface PyRuntimeInfoApi<FileT extends FileApi> 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",
Expand Down

0 comments on commit 2945ef5

Please sign in to comment.