From 4093c0cc1ac3110dc536d108b48f7434fd66be61 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 28 Nov 2016 18:12:37 +0100 Subject: [PATCH] python/lib/moresetuptools.py: cleaner clean --- python/lib/moresetuptools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.11.0