BLD: clean .pxi when cleaning (#14766)

(cherry picked from commit 43c24e621d)
This commit is contained in:
Jeff Reback 2016-11-29 18:37:29 -05:00 committed by Joris Van den Bossche
parent 08c8cf63ed
commit 612508a0ce
1 changed files with 5 additions and 0 deletions

View File

@ -293,6 +293,11 @@ class CleanCommand(Command):
if d == '__pycache__':
self._clean_trees.append(pjoin(root, d))
# clean the generated pxi files
for pxifile in _pxifiles:
pxifile = pxifile.replace("", ".pxi")
for d in ('build', 'dist'):
if os.path.exists(d):