Skip to content

fix: Preserve src-layout in source distributions#201

Open
gshiba wants to merge 2 commits intobihealth:mainfrom
gshiba:fix/pyproject-package-path
Open

fix: Preserve src-layout in source distributions#201
gshiba wants to merge 2 commits intobihealth:mainfrom
gshiba:fix/pyproject-package-path

Conversation

@gshiba
Copy link

@gshiba gshiba commented Nov 18, 2025

The sdist build was flattening src/vcfpy/ to vcfpy/ but keeping the pyproject.toml reference to 'src/vcfpy', causing wheel builds from the tarball to create empty 3KB wheels instead of proper 43KB wheels.

This broke:

Fix: Use only-include=["src"] to preserve directory structure in sdist, ensuring builds from tarball work correctly.

The sdist build was flattening src/vcfpy/ to vcfpy/ but keeping the
pyproject.toml reference to 'src/vcfpy', causing wheel builds from the
tarball to create empty 3KB wheels instead of proper 43KB wheels.

This broke:
- Conda/bioconda builds
- pip install --no-binary :all:
- Any downstream packager building from source

Fix: Use only-include=["src"] to preserve directory structure in sdist,
ensuring builds from tarball work correctly.

Tested:
- Build from repo: 43KB wheel with 10 .py files ✓
- Build from tarball: 43KB wheel with 10 .py files ✓

Fixes bioconda-recipes build failures.
@gshiba gshiba changed the title Fix: Preserve src-layout in source distributions fix: Preserve src-layout in source distributions Nov 18, 2025
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.

1 participant