Browse Source

Merge pull request #1252 from svaarala/fix-dist-pyc-files

Delete .pyc files from dist
pull/1254/head v2.0.0
Sami Vaarala 8 years ago
committed by GitHub
parent
commit
4180966c47
  1. 2
      util/dist.py

2
util/dist.py

@ -95,6 +95,7 @@ def delete_matching_files(dirpath, cb):
if os.path.isfile(os.path.join(dirpath, fn)) and cb(fn):
logger.debug('Deleting %r' % os.path.join(dirpath, fn))
os.unlink(os.path.join(dirpath, fn))
#print('Deleting matching file: %r' % fn)
def glob_files(pattern):
return glob.glob(pattern)
@ -795,6 +796,7 @@ def main():
# Clean up remaining temp files.
delete_matching_files(dist, lambda x: x[-4:] == '.tmp')
delete_matching_files(os.path.join(dist, 'tools'), lambda x: x[-4:] == '.pyc')
# Create SPDX license once all other files are in place (and cleaned).

Loading…
Cancel
Save