Skip to content
Snippets Groups Projects
Commit 31eff8fd authored by Stuart Prescott's avatar Stuart Prescott Committed by Stefano Rivera
Browse files

Remove *.egg-info directories in clean step

Removing the egg-info directory automatically in the 'clean' step means that
if the build changes the egg-info, the change will not trip up the next
build of the source package.

* if the egg-info directory is generated by the build, then removing it
  is the right thing to do

* 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.
parent 02ee81e4
No related branches found
No related tags found
1 merge request!46Remove *.egg-info directories in clean step
......@@ -185,7 +185,7 @@ class Base:
for root, dirs, file_names in walk(context['dir']):
for name in dirs:
if name == '__pycache__':
if name == '__pycache__' or name.endswith('egg-info'):
dpath = join(root, name)
log.debug('removing dir: %s', dpath)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment