-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 781 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SRC_DIR = prob2020
clean:
rm -f -r build/
rm -f $(SRC_DIR)/cython/cutils.so
rm -f $(SRC_DIR)/cython/gaussian_kde.so
rm -f $(SRC_DIR)/cython/uniform_kde.so
find . -name '*.pyc' -delete
clean-cpp:
rm -f $(SRC_DIR)/cython/cutils.cpp
rm -f $(SRC_DIR)/cython/gaussian_kde.cpp
rm -f $(SRC_DIR)/cython/uniform_kde.cpp
clean-all: clean clean-cpp
.PHONY: build
build: clean
python setup.py build_ext --inplace
.PHONY: cython-build
cython-build: clean clean-cpp
python setup.py build_ext --inplace --use-cython
.PHONY: tests
tests:
@hash nosetests 2>/dev/null || { echo -e >&2 "############################\nI require the python library \"nose\" for unit tests but it's not installed. Aborting.\n############################\n"; exit 1; }
nosetests --nologcapture tests/