[debhelper-devel] Bug#652617: Should clean egg-info directory for Python packages
Niels Thykier
niels at thykier.net
Mon Aug 31 19:20:27 UTC 2015
Control: tags -1 wontfix moreinfo
Hi,
On Thu, 10 May 2012 17:38:15 +0200 Jakub Wilk <jwilk at debian.org> wrote:
> FYI, theres'a a thread on debian-python at ldo on this very subject:
> https://lists.debian.org/debian-python/2012/05/msg00029.html
>
> * Julien Danjou <acid at debian.org>, 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
>
Based on Jakub Wilk's mail, I am not confident it is something we an fix
in debhelper. Accordingly, I will now close this bug.
If it is now safe to unconditionally delete egg-info directories (or
there is another way to make debhelper correctly clean the package
automatically), please do not hesitate to let us know.
Thanks,
~Niels
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20150831/e4585b7a/attachment-0001.sig>
More information about the debhelper-devel
mailing list