Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/scripts/build-wheels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ with tempfile.TemporaryDirectory() as tmpdir:
with zipfile.ZipFile(src_wheel, 'r') as zf:
zf.extractall(tmpdir)

# Restore executable bit on the CLI binary (setuptools strips it)
for bin_path in (tmpdir / 'copilot' / 'bin').iterdir():
if bin_path.name in ('copilot', 'copilot.exe'):
bin_path.chmod(0o755)

# Find and update WHEEL file
wheel_info_dirs = list(tmpdir.glob('*.dist-info'))
if not wheel_info_dirs:
Expand Down
Loading