You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unix: rewrite shebangs of Python scripts to reference local interpreter
Before, the shebangs referenced a path in the build environment, which
likely didn't exist in the run-time environment.
After this change, the shebang uses a multiline shell script to
call `exec` on the `python*` binary in the same directory as the
script.
The solution is similar to #61 but the technical approach is a bit
different. We perform the rewrite inside the build environment, so
this should work when building in Docker containers. And we use
binary I/O everywhere, ensuring bytes are preserved. We also always
exec the canonical `python*` binary to avoid symlink overhead.
0 commit comments