Skip to content

Support merging with namespace packages via pkgutil.extend_path#694

Closed
caspervonb wants to merge 1 commit intomainfrom
patch-compatability-with-pep-420
Closed

Support merging with namespace packages via pkgutil.extend_path#694
caspervonb wants to merge 1 commit intomainfrom
patch-compatability-with-pep-420

Conversation

@caspervonb
Copy link
Copy Markdown
Collaborator

Add pkgutil.extend_path() to the package’s __init__.py to allow coexistence with PEP 420-compliant namespace packages. This enables importing submodules from separately distributed packages under the same namespace.

Add `pkgutil.extend_path()` to the package’s `__init__.py` to allow
coexistence with PEP 420-compliant namespace packages. This enables importing
submodules from separately distributed packages under the same namespace.
@caspervonb
Copy link
Copy Markdown
Collaborator Author

Closing as stale, needed for #733 but will redo it.

@caspervonb caspervonb closed this Sep 23, 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