From: Paul Brossier Date: Mon, 28 Nov 2016 17:12:37 +0000 (+0100) Subject: python/lib/moresetuptools.py: cleaner clean X-Git-Tag: 0.4.4~140 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=4093c0cc1ac3110dc536d108b48f7434fd66be61;p=aubio.git python/lib/moresetuptools.py: cleaner clean --- diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py index 08f45920..1238091a 100644 --- a/python/lib/moresetuptools.py +++ b/python/lib/moresetuptools.py @@ -124,7 +124,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) from distutils.command.build_ext import build_ext as _build_ext