I'm sure I'm not the only one who received a whole bunch of bugs
entitled "Fails to build source after successful build" last weekend.
There was one theme common to most of them: the presence of a
*.egg-info directory which was not cleaned by debian/rules clean.
I know the bug report said that this policy is currently under
discussion, but I did get thinking about it. I imagine that this
particular directory should be the responsibility of dh-python to
clean up, but it may not be sensible to always delete *.egg-info
directories, as they may be present in the orig.tar.gz file. One
could handle it by manually adding this directory to debian/clean in
each package, but perhaps this should be the default behaviour of
dh-python?
Any thoughts?
One could handle it by manually adding this directory toSee https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/46
debian/clean in each package, but perhaps this should be the
default behaviour of dh-python?
On Fri, 18 Aug 2023, Andreas Tille wrote:
Am Fri, Aug 18, 2023 at 01:42:53PM +0100 schrieb Julian Gilbey:
I'm sure I'm not the only one who received a whole bunch of bugs
entitled "Fails to build source after successful build" last weekend. There was one theme common to most of them: the presence of a
*.egg-info directory which was not cleaned by debian/rules clean.
[...]
It is being worked on: https://salsa.debian.org/python-team/tools/dh-python/-/merge_requests/46
Am Fri, Aug 18, 2023 at 01:42:53PM +0100 schrieb Julian Gilbey:
I'm sure I'm not the only one who received a whole bunch of bugs
entitled "Fails to build source after successful build" last weekend.
There was one theme common to most of them: the presence of a
*.egg-info directory which was not cleaned by debian/rules clean.
I know the bug report said that this policy is currently under
discussion, but I did get thinking about it. I imagine that this
particular directory should be the responsibility of dh-python to
clean up, but it may not be sensible to always delete *.egg-info
directories, as they may be present in the orig.tar.gz file. One
could handle it by manually adding this directory to debian/clean in
each package, but perhaps this should be the default behaviour of
dh-python?
Any thoughts?
I agree that having this a no-brainer and getting all this *.egg-info
caused bugs solved by a simple dh-python update without changing
packaging code would be extremely convenient. I could imagine creating
a backup of the affected *.egg-info files if existent and copy these
back in clean target could solve this.
I'm sure I'm not the only one who received a whole bunch of bugs
entitled "Fails to build source after successful build" last weekend.
There was one theme common to most of them: the presence of a
*.egg-info directory which was not cleaned by debian/rules clean.
I know the bug report said that this policy is currently under
discussion
, but I did get thinking about it. I imagine that this
particular directory should be the responsibility of dh-python to
clean up, but it may not be sensible to always delete *.egg-info
directories, as they may be present in the orig.tar.gz file.
One
could handle it by manually adding this directory to debian/clean in
each package
Yes, we can have dh-python to do the work, but IMO, the only thing[...]
it should be doing, is rm -rf *.egg-info, and error out if the
egg-info is within the orig tarball, as this should not happen,
IMO.
On 2023-09-05 14:16:55 +0200 (+0200), Thomas Goirand wrote:
[...]
Yes, we can have dh-python to do the work, but IMO, the only thing
it should be doing, is rm -rf *.egg-info, and error out if the
egg-info is within the orig tarball, as this should not happen,
IMO.
[...]
See
https://salsa.debian.org/python-team/tools/dh-python/-/commit/31eff8f
which merged last week.
Also, the commit linked to below states:
"if the egg-info directory is included in the upstream source, then
deleting it causes no harm as dpkg-source warns on missing files in
the source package but does not exit with error.”
It might not cause any problems for dpkg-source, but won’t it cause
issues for double builds? For reference:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1044268 <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1044268>
If so, any package that ships the egg-info directory in the tarball will
get flagged with a FTBFS bug, which might be the desired behavior if
these shouldn’t be in the tarball anyway.
As a followup question, I have noticed that a lot of packages (including electrum, which I have recently started maintaining) ship the egg-info directory. Looking through /usr/lib/python3/dist-packages/, this is common but
not universal. Is there any reason to ship this directory or should it be removed from the binary packages?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 349 |
Nodes: | 16 (2 / 14) |
Uptime: | 108:08:10 |
Calls: | 7,612 |
Calls today: | 3 |
Files: | 12,786 |
Messages: | 5,683,108 |
Posted today: | 2 |