fix(python): restore package discovery for platform wheel builds#601
Merged
SteveSandersonMS merged 1 commit intomainfrom Feb 27, 2026
Merged
fix(python): restore package discovery for platform wheel builds#601SteveSandersonMS merged 1 commit intomainfrom
SteveSandersonMS merged 1 commit intomainfrom
Conversation
The explicit `packages = ["copilot"]` setting excluded the `copilot.bin` subpackage that `scripts/build-wheels.mjs` creates dynamically at publish time (containing the bundled CLI binary). Switch back to `packages.find` with `include = ["copilot*"]` so `copilot.bin` is discovered during wheel builds while still being safely skipped during normal dev installs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Restores correct Python package discovery during platform wheel publishing so the dynamically-created copilot.bin subpackage (bundled Copilot CLI) is included in built wheels, preventing publish-time failures.
Changes:
- Replaced an explicit
packages = ["copilot"]configuration with setuptoolsfind-based discovery. - Added an
include = ["copilot*"]glob socopilot.binis picked up when present during wheel builds.
This was referenced Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The explicit
packages = ["copilot"]setting inpyproject.tomlexcluded thecopilot.binsubpackage thatscripts/build-wheels.mjscreates dynamically at publish time (containing the bundled CLI binary). This caused the publish workflow to fail with aFileNotFoundErroroncopilot/binwhen repacking wheels.Switch back to
packages.findwithinclude = ["copilot*"]socopilot.binis discovered during wheel builds while still being safely skipped during normal dev installs (where the directory doesn't exist).Fixes the failure in https://github.com/github/copilot-sdk/actions/runs/22484209474/job/65129708048