Skip to content

Commit

Permalink
BLD: spring cleaning on Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Apr 6, 2014
1 parent 657d255 commit e346774
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions doc/source/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down

0 comments on commit e346774

Please sign in to comment.