summaryrefslogtreecommitdiff
path: root/debian/patches/cleaner_clean.diff
blob: 4ac8baeced47ae111ad3b6b019076e8cf88166f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/python/lib/moresetuptools.py b/python/lib/moresetuptools.py
index 906b871..6318c1e 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):