FYI, theres'a a thread on debian-python@ldo on this very subject:
https://lists.debian.org/debian-python/2012/05/msg00029.html
* Julien Danjou <[email protected]>, 2011-12-19, 10:39:
When building Python packages, setup.py often creates a
PACKAGE.egg-info directory which does not exist in upstream tarball.
Therefore debian/rules file is need an override on dh_auto_clean to rm
-rf PACKAGE.egg-info.
There are simpler ways to overcome this problem than adding an override:
1) Add *.egg-info/* to debian/clean. (This requires compat >= 7.)
2) Add extend-diff-ignore="^[^/]+\.egg-info/" to debian/source/options.
(This requires source format 3.0.)
The debian/rules file would not need that if dh_clean would be able to
automatically remove the .egg-info directory! :)
In the past there were cases of silent breakage due to removing
*.egg-info:
| zope.security (3.8.3-2) unstable; urgency=low
| .
| * Team upload.
| * Use debian/source/options to ignore changes in egg-info directory
| rather than debian/clean otherwise zcml and txt files are missing.
--
Jakub Wilk
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]