-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
49 lines (37 loc) · 1.16 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
44
45
46
47
48
49
all:
python3 setup.py install --user
clean:
rm -rf build/ src/roaringbitmap.h
find src/ -name '*.c' -delete
find src/ -name '*.so' -delete
find src/ -name '*.pyc' -delete
find src/ -name '*.html' -delete
find tests/ -name '*.pyc' -delete
rm -rf src/__pycache__ tests/__pycache__
test: all
ulimit -Sv 500000; python3 -m pytest tests/unittests.py
bench: all
ulimit -Sv 500000; python3 tests/benchmarks.py
lint:
pycodestyle --ignore=E1,W1,W503 tests/*.py \
&& pycodestyle --ignore=E1,W1,F,E901,E225,E227,E211,W503 \
src/*.pyx src/*.pxi
py2:
python2 setup.py install --user
test2: py2
python2 -m pytest tests/unittests.py
bench2: all
ulimit -Sv 500000; python2 tests/benchmarks.py
debug:
python3-dbg setup.py install --user --debug
debug2:
python2-dbg setup.py install --user --debug
testdebug: debug
gdb -ex run --args python3-dbg -m pytest tests/unittests.py -v
testdebug2: debug2
gdb -ex run --args python2-dbg -m pytest tests/unittests.py -v
valgrind:
python3-dbg setup.py install --user --debug
valgrind --tool=memcheck --suppressions=valgrind-python.supp \
--leak-check=full --show-leak-kinds=definite \
python3.5-dbg -m pytest tests/unittests.py -v