From e346774e545b7f385372bcbdc49d6e496924ae3b Mon Sep 17 00:00:00 2001 From: Phillip Cloud Date: Thu, 3 Apr 2014 14:35:39 -0400 Subject: [PATCH] BLD: spring cleaning on Makefile --- Makefile | 12 +++++------- doc/source/release.rst | 2 ++ setup.py | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index d29e177d39832..9a768932b8bea 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,13 @@ tseries: pandas/lib.pyx pandas/tslib.pyx pandas/hashtable.pyx python setup.py build_ext --inplace -.PHONY : clean develop build clean clean_pyc tseries doc +.PHONY : develop build clean clean_pyc tseries doc -clean: clean_pyc - -rm -rf build dist - -find . -name '*.so' -exec rm {} \; +clean: + -python setup.py clean clean_pyc: - -find . -name '*.pyc' -exec rm {} \; -or -name '*.pyo' -exec rm {} \; + -find . -name '*.py[co]' -exec rm {} \; sparse: pandas/src/sparse.pyx python setup.py build_ext --inplace @@ -20,8 +19,7 @@ develop: build -python setup.py develop doc: - -rm -rf doc/build - -rm -rf doc/source/generated + -rm -rf doc/build doc/source/generated cd doc; \ python make.py clean; \ python make.py html diff --git a/doc/source/release.rst b/doc/source/release.rst index 3f3cfe5dd4359..dd5526f4b07a6 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -314,6 +314,8 @@ Bug Fixes - Bug in setting a tz-aware index directly via ``.index`` (:issue:`6785`) - Bug in expressions.py where numexpr would try to evaluate arithmetic ops (:issue:`6762`). +- Bug in Makefile where it didn't remove Cython generated C files with ``make + clean`` (:issue:`6768`) pandas 0.13.1 ------------- diff --git a/setup.py b/setup.py index 6713e52733fd1..f89353e20a625 100755 --- a/setup.py +++ b/setup.py @@ -280,7 +280,7 @@ def initialize_options(self): 'ultrajsondec.c', ] - for root, dirs, files in list(os.walk('pandas')): + for root, dirs, files in os.walk('pandas'): for f in files: if f in self._clean_exclude: continue @@ -297,7 +297,7 @@ def initialize_options(self): if d == '__pycache__': self._clean_trees.append(pjoin(root, d)) - for d in ('build',): + for d in ('build', 'dist'): if os.path.exists(d): self._clean_trees.append(d)