Bug#652617: Should clean egg-info directory for Python packages

2015-08-31 Thread Niels Thykier
Control: tags -1 wontfix moreinfo

Hi,

On Thu, 10 May 2012 17:38:15 +0200 Jakub Wilk  wrote:
> 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 , 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





signature.asc
Description: OpenPGP digital signature


Bug#652617: Should clean egg-info directory for Python packages

2012-05-10 Thread Jakub Wilk

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 , 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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#652617: Should clean egg-info directory for Python packages

2011-12-19 Thread Julien Danjou
Package: debhelper
Version: 8.9.13
Severity: wishlist

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.

The debian/rules file would not need that if dh_clean would be able to
automatically remove the .egg-info directory! :)

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages debhelper depends on:
ii  binutils2.22-2
ii  dpkg-dev1.16.1.2
ii  file5.09-2
ii  html2text   1.3.2a-15
ii  man-db  2.6.0.2-3
ii  perl5.14.2-6
ii  po-debconf  1.0.16+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  0.59

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org