forked from MagicStack/uvloop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (27 loc) · 982 Bytes
/
Makefile
File metadata and controls
47 lines (27 loc) · 982 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: _default clean clean-libuv distclean compile debug docs test release
PYTHON ?= python
_default: compile
clean:
rm -fr dist/ doc/_build/ *.egg-info build/ uvloop/loop.*.pyd
rm -fr build/lib.* build/temp.*
rm -fr uvloop/*.c uvloop/*.html uvloop/*.so
rm -fr uvloop/handles/*.html uvloop/includes/*.html
find . -name '__pycache__' | xargs rm -rf
clean-libuv:
(cd vendor/libuv; git clean -dfX)
distclean: clean clean-libuv
compile: clean
$(PYTHON) setup.py build_ext --inplace --cython-always
debug: clean
$(PYTHON) setup.py build_ext --inplace --debug \
--cython-always \
--cython-annotate \
--cython-directives="linetrace=True" \
--define UVLOOP_DEBUG,CYTHON_TRACE,CYTHON_TRACE_NOGIL
docs: compile
cd docs && $(PYTHON) -m sphinx -a -b html . _build/html
test:
PYTHONASYNCIODEBUG=1 $(PYTHON) -m unittest discover -s tests
$(PYTHON) -m unittest discover -s tests
release: distclean compile test
$(PYTHON) setup.py sdist bdist_wheel upload