diff options
author | Paul Brossier <piem@debian.org> | 2016-11-27 22:23:50 +0100 |
---|---|---|
committer | Paul Brossier <piem@debian.org> | 2016-11-27 22:23:50 +0100 |
commit | 4edb602f4a6e3aa81bb5f18e1b6331d68b7e1506 (patch) | |
tree | c0290fe8471d2f5adbf018bc3d7dc2abf146948e | |
parent | baeca22c866643299732a361dd5555c4e10d26a2 (diff) |
cleaner_clean
Gbp-Pq: Name cleaner_clean.diff
-rw-r--r-- | python/lib/moresetuptools.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py index 81c45d8..348338c 100644 --- a/python/lib/moresetuptools.py +++ b/python/lib/moresetuptools.py @@ -117,7 +117,9 @@ def add_system_aubio(ext): class CleanGenerated(distutils.command.clean.clean): def run(self): - distutils.dir_util.remove_tree(output_path) + if os.path.isdir(output_path): + distutils.dir_util.remove_tree(output_path) + config = os.path.join('python', 'ext', 'config.h') distutils.command.clean.clean.run(self) class GenerateCommand(distutils.cmd.Command): |