Skip to content

Configparser should not declare a namespace with setuptools #21

@jaraco

Description

@jaraco

Original report by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco).


Per the documentation for backports, the backports modules should be using the pkgutil technique for declaring namespaces.

Although it doesn't say it explicitly in the guidance, the only place where namespace_packages= is mentioned is in the guidance for pkg_resources namespaces. And if you look at the examples or other backports projects, you see they do not define a non-degenerate namespace_packages.

By declaring the namespace_packages, you signal setuptools to declare that namespace and to generate the nspkg.pth file that leads to backports being imported at startup. It is the root cause of pytest-4014 and is likely implicated in #20, #19, and #17.

I believe you can remove that declaration without any adverse effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcritical

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions