mirror of https://github.com/MagicStack/uvloop.git
49 lines
946 B
Makefile
49 lines
946 B
Makefile
.PHONY: _default clean clean-libuv distclean compile debug docs test release
|
|
|
|
|
|
PYTHON ?= python
|
|
|
|
|
|
_default: compile
|
|
|
|
|
|
clean:
|
|
rm -fr dist/ doc/_build/ *.egg-info 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
|
|
rm -fr build/
|
|
|
|
|
|
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:
|
|
$(PYTHON) setup.py build_ext --inplace build_sphinx
|
|
|
|
|
|
test:
|
|
PYTHONASYNCIODEBUG=1 $(PYTHON) setup.py test
|
|
$(PYTHON) setup.py test
|
|
|
|
|
|
release: distclean compile test
|
|
$(PYTHON) setup.py sdist bdist_wheel upload
|