fix: set executable permission on CLI binary in Python wheel (#419) · github/copilot-sdk@4dc5629 · GitHub
Skip to content

Commit 4dc5629

Browse files
fix: set executable permission on CLI binary in Python wheel (#419)
* fix: set executable permission on CLI binary in Python wheel The repack step in build-wheels.mjs was producing wheels where copilot/bin/copilot had 0o644 (-rw-r--r--) permissions because setuptools strips the executable bit when building package data. After extracting the wheel for repack, restore chmod 0o755 on the CLI binary so that zf.write() captures the correct permissions. This ensures pip/uv install the binary as executable on Unix. * Update python/scripts/build-wheels.mjs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b904431 commit 4dc5629

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎python/scripts/build-wheels.mjs‎

Lines changed: 5 additions & 0 deletions

0 commit comments

Comments
 (0)