ref: 4093c0cc1ac3110dc536d108b48f7434fd66be61
parent: 9ad0dcc8df728a6dd05ce650b23270737c3d1d65
author: Paul Brossier <piem@piem.org>
date: Mon Nov 28 13:12:37 EST 2016
python/lib/moresetuptools.py: cleaner clean
--- a/python/lib/moresetuptools.py
+++ b/python/lib/moresetuptools.py
@@ -124,7 +124,9 @@
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