-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (36 loc) · 1.02 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
.PHONY: build build-trace check clean cleanc benchmark-all benchmark-compare
build:
python setup.py build_ext --inplace
cleanc
build-trace:
python setup.py build_ext --force --inplace --define CYTHON_TRACE
cleanc
check:
pre-commit run --all-files
cleanc:
rm -f src/in_n_out/*.c
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -f `find . -type f -name '*~' `
rm -f `find . -type f -name '.*~' `
rm -rf .cache
rm -rf .pytest_cache
rm -rf htmlcov
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -rf build
rm -rf dist
rm -f `find src/in_n_out -type f -name '*.c' `
rm -f `find src/in_n_out -type f -name '*.so' `
rm -rf coverage.xml
# run benchmarks for all commits since v0.1.0
benchmark-all:
pip install asv
asv run -j 4 --show-stderr --interleave-processes --skip-existing v0.1.0..HEAD
# compare HEAD against main
benchmark-compare:
asv run --interleave-processes --skip-existing main^!
asv run --interleave-processes HEAD^!
asv compare --split --factor 1.15 main HEAD