Skip to content

easy_install (via bdist_egg) adds __init__.py to PEP 420 namespace packages #148

@ghost

Description

Originally reported by: wyatt (Bitbucket: wyatt, GitHub: wyatt)


https://bitbucket.org/pypa/setuptools/src/13a839bd8ad27a17543878068b996991357264d2/setuptools/command/bdist_egg.py?at=default#cl-273

This makes other packages in the namespace unimportable.

Proposed solutions:

  • Don't add a missing __init__.py under any circumstances
  • Or, if that's not feasible, don't add an __init__.py on Python 3.3+

It seems to me that the installer shouldn't be adding files to an installed package in any case. Is there a reason it does this?


Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions