Skip to content

Conversation

@ashwin-ant
Copy link
Collaborator

Bundle platform-specific Claude Code CLI binaries directly in the Python package, eliminating the need for separate CLI installation.

Changes:

  • Created download_cli.py script to fetch CLI during build
  • Created build_wheel.py script for building platform-specific wheels
  • Modified subprocess_cli.py to check for bundled CLI first
  • Updated GitHub workflow to build separate wheels per platform
  • Updated pyproject.toml to include _bundled directory in wheels
  • Updated README to reflect bundled CLI (removed Node.js requirement)

The SDK now automatically uses the bundled CLI, falling back to system installation if not found. Users can still override with cli_path option.

Platform-specific wheels are built for macOS, Linux, and Windows, and pip automatically selects the correct one during installation.

🤖 Generated with Claude Code

ashwin-ant and others added 2 commits October 23, 2025 13:47
Bundle platform-specific Claude Code CLI binaries directly in the Python
package, eliminating the need for separate CLI installation.

Changes:
- Created download_cli.py script to fetch CLI during build
- Created build_wheel.py script for building platform-specific wheels
- Modified subprocess_cli.py to check for bundled CLI first
- Updated GitHub workflow to build separate wheels per platform
- Updated pyproject.toml to include _bundled directory in wheels
- Updated README to reflect bundled CLI (removed Node.js requirement)

The SDK now automatically uses the bundled CLI, falling back to system
installation if not found. Users can still override with cli_path option.

Platform-specific wheels are built for macOS, Linux, and Windows, and pip
automatically selects the correct one during installation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Add dedicated CLI version tracking in _cli_version.py and separate
claude_code_version workflow input for better version management.

Changes:
- Created _cli_version.py to track bundled CLI version
- Created update_cli_version.py script to update CLI version
- Modified build_wheel.py to read CLI version from _cli_version.py
- Added claude_code_version input to publish workflow
- Updated workflow to commit CLI version changes
- Build script now defaults to reading CLI version from code

The CLI version is now tracked in code similar to the package version,
and the publish workflow includes both versions in the release PR.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants