Files
ports/devel/bazel8/files/rules_python_freebsd.patch.in
2026-10-04 04:07:15 +00:00

12 lines
375 B
Plaintext

--- a/python/private/py_executable_bazel.bzl
+++ b/python/private/py_executable_bazel.bzl
@@ -538,7 +538,7 @@
is_for_zip = True,
)
else:
- ctx.actions.write(prelude, "#!/usr/bin/env python3\n")
+ ctx.actions.write(prelude, "#!%%PYTHON_CMD%%\n")
ctx.actions.run_shell(
command = "cat {prelude} {zip} > {output}".format(