BLD: clean .pxi when cleaning (#14766)

This commit is contained in:
Jeff Reback 2016-11-29 18:37:29 -05:00 committed by GitHub
parent e3de052664
commit 43c24e621d
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.in", ".pxi")
self._clean_me.append(pxifile)
for d in ('build', 'dist'):
if os.path.exists(d):
self._clean_trees.append(d)