Stepping through share_files() in dhpython/fs.py yields a clue. What appears to happen is that share_files() is first called on the python3.4/dist-packages tree and that gets copied into python3/dist-packages.
Then it gets called on the python3.5/dist-packages tree, and we find a
difference in d-p/flufl.lock-2.4.egg-info/SOURCES.txt (f.e.). Indeed the
files are different:
# diff -u
debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
debian/python3-flufl.lock/usr/lib/python3/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
---
debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
2015-10-20 17:26:51.368888058 -0400
+++
debian/python3-flufl.lock/usr/lib/python3/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
2015-10-20 17:26:51.628886127 -0400
@@ -20,6 +20,13 @@
debian/python-flufl.lock/usr/lib/python2.7/dist-packages/flufl/lock/NEWS.rst
debian/python-flufl.lock/usr/lib/python2.7/dist-packages/flufl/lock/README.rst
debian/python-flufl.lock/usr/lib/python2.7/dist-packages/flufl/lock/docs/using.rst
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/dependency_links.txt
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/namespace_packages.txt
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/top_level.txt
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl/lock/NEWS.rst
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl/lock/README.rst
+debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl/lock/docs/using.rst
flufl/__init__.py
flufl.lock.egg-info/PKG-INFO
flufl.lock.egg-info/SOURCES.txt
It looks like the python3.5 version has 3.5 paths where as the 3.4 version
does not. So share_files() returns False from the cmpfile() call at line 100,
and the fpath1, which is
debian/python3-flufl.lock/usr/lib/python3.5/dist-packages/flufl.lock-2.4.egg-info/SOURCES.txt
doesn't get os.remove()'d. That seems to keep the whole 3.5/.../egg-info
directory alive, although it does end up empty in the installed binary
package. I don't know why it's empty, and I don't yet know why the are those
extra paths in the 3.5 version of SOURCES.txt. My guess right now is that
because 3.4 is built *before* 3.5, the 3.4 version doesn't contain the 3.5
version.
I don't yet know what a good fix for that is.
pgpCfm2QJ1iNo.pgp
Description: OpenPGP digital signature

