superfluous __init__.py generates import errors
Bug #688335 reported by
Alan Franzoni
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.interface (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The zope.interface package is manually copying __init__.py from sources to the "zope" directory. This should NOT be done when a nspkg.pth is installed for the package, as it is correctly done.
Although this does not seem to provoke issues at a first glance, it's what provokes two hard-to-track issues with zc.buildout:
https:/
https:/
if you check other zope.* packages in debian/ubuntu, you'll see none of them manually copy __init__.py .
Full discussion here:
http://
Patch attached. I'll open a bug in Debian ASAP:
To post a comment you must log in.
This __init__.py is included because it causes other breakage if removed. Please see a previous discussion on removing this:
https:/ /bugs.launchpad .net/van. pydeb/+ bug/619294
That bug contains a test case which fails when the __init__.py is removed.
Background reading on the breakage:
http:// mail.python. org/pipermail/ distutils- sig/2009- May/011730. html
Consistency in what is broken is probably more important than fixing one thing only to break another;) So I'd rather we didn't try fix this until the test case in the van.pydeb bug passes without the __init__.py.