Skip to content

Fix namespace package detection in setup.py#504

Merged
jacklovell merged 1 commit into
developmentfrom
fix-setup-nspkg
Jul 7, 2026
Merged

Fix namespace package detection in setup.py#504
jacklovell merged 1 commit into
developmentfrom
fix-setup-nspkg

Conversation

@jacklovell

Copy link
Copy Markdown
Member

Setuptools deprecated the namespace_packages option to setup(), so it was removed in #500. But find_packages then ignores any directories without an __init__.py which meant that most of the Cherab files (with the exception of the compiled .so libraries) were left out when producing a wheel.

Fix this by replacing find_packages with find_namespace_packages, which correctly handles PEP420-style namespace packages.

Setuptools deprecated the `namespace_packages` option to `setup()`, so
it was removed in #500. But `find_packages` then ignores any
directories without an `__init__.py` which meant that most of the
Cherab files (with the exception of the compiled .so libraries) were
left out when producing a wheel.

Fix this by replacing `find_packages` with `find_namespace_packages`,
which correctly handles PEP420-style namespace packages.
@jacklovell
jacklovell merged commit 15ae09b into development Jul 7, 2026
12 checks passed
@jacklovell
jacklovell deleted the fix-setup-nspkg branch July 7, 2026 15:31
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