Skip to content

fix: exclude external_packages bindings from uniffi wheels#3013

Merged
messense merged 1 commit intoPyO3:mainfrom
messense:fix/uniffi-external-packages
Feb 17, 2026
Merged

fix: exclude external_packages bindings from uniffi wheels#3013
messense merged 1 commit intoPyO3:mainfrom
messense:fix/uniffi-external-packages

Conversation

@messense
Copy link
Member

When uniffi.toml defines external_packages in [bindings.python], the generated Python bindings for those external crates are now excluded from the wheel and __init__.py. Previously they were included, causing import failures since the external crate's cdylib is not bundled in the wheel.

Fixes #2459

When `uniffi.toml` defines `external_packages` in `[bindings.python]`,
the generated Python bindings for those external crates are now
excluded from the wheel and `__init__.py`. Previously they were
included, causing import failures since the external crate's
cdylib is not bundled in the wheel.

Fixes PyO3#2459
@messense messense enabled auto-merge (squash) February 17, 2026 09:09
@messense messense merged commit d16159f into PyO3:main Feb 17, 2026
45 checks passed
@messense messense deleted the fix/uniffi-external-packages branch February 17, 2026 10:01
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.

Unable to use external dependency with uniffi

1 participant

Comments