Debian Bug report logs - #652617
Should clean egg-info directory for Python packages

version graph

Package: debhelper; Maintainer for debhelper is Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>; Source for debhelper is src:debhelper.

Reported by: Julien Danjou <acid@debian.org>

Date: Mon, 19 Dec 2011 09:42:02 UTC

Severity: wishlist

Found in version debhelper/8.9.13

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#652617; Package debhelper. (Mon, 19 Dec 2011 09:42:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Julien Danjou <acid@debian.org>:
New Bug report received and forwarded. Copy sent to Joey Hess <joeyh@debian.org>. (Mon, 19 Dec 2011 09:42:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Julien Danjou <acid@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Should clean egg-info directory for Python packages
Date: Mon, 19 Dec 2011 10:39:24 +0100
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  binutils    2.22-2
ii  dpkg-dev    1.16.1.2
ii  file        5.09-2
ii  html2text   1.3.2a-15
ii  man-db      2.6.0.2-3
ii  perl        5.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




Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#652617; Package debhelper. (Thu, 10 May 2012 15:42:02 GMT) Full text and rfc822 format available.

Message #8 received at 652617@bugs.debian.org (full text, mbox):

From: Jakub Wilk <jwilk@debian.org>
To: 652617@bugs.debian.org
Cc: Julien Danjou <acid@debian.org>
Subject: Re: Bug#652617: Should clean egg-info directory for Python packages
Date: Thu, 10 May 2012 17:38:15 +0200
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 <acid@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




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 16:44:34 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.