Skip to content

fix: include backbone subpackage in pip installation#258

Open
xander1421 wants to merge 1 commit intoZyphra:mainfrom
xander1421:fix/include-backbone-subpackage
Open

fix: include backbone subpackage in pip installation#258
xander1421 wants to merge 1 commit intoZyphra:mainfrom
xander1421:fix/include-backbone-subpackage

Conversation

@xander1421
Copy link

Summary

Fixes a packaging bug where the zonos.backbone subpackage was not included when installing via pip.

Problem

When installing Zonos via pip (e.g., pip install git+https://github.com/Zyphra/Zonos.git), the zonos/backbone/ directory and its modules were not included in the installation. This caused:

ModuleNotFoundError: No module named 'zonos.backbone'

Root Cause

The pyproject.toml only specified include = ["zonos"] which doesn't include subpackages.

Fix

Changed the setuptools packages.find configuration to include all subpackages:

[tool.setuptools.packages.find]
include = ["zonos", "zonos.*"]

This ensures zonos.backbone (and any future subpackages) are properly included in pip installations.

Test plan

  • Install package via pip from this branch
  • Verify from zonos.backbone import BACKBONES works
  • Verify TTS generation works end-to-end

🤖 Generated with Claude Code

The current setuptools configuration only includes the top-level `zonos`
package but not its subpackages. This causes `ModuleNotFoundError: No module
named 'zonos.backbone'` when installing via pip.

Changed `include = ["zonos"]` to `include = ["zonos", "zonos.*"]` to ensure
all subpackages (like `zonos.backbone`) are included in the distribution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@FelipeCalderaro
Copy link

Up

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