Commit 3cfbbbc
committed
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.1 parent b904431 commit 3cfbbbc
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
256 | 262 | | |
257 | 263 | | |
258 | 264 | | |
| |||
0 commit comments