uvloop/Makefile

56 lines
1.1 KiB
Makefile
Raw Normal View History

2018-05-30 18:35:11 +00:00
.PHONY: _default clean clean-libuv distclean compile debug docs test testinstalled release setup-build ci-clean
2015-11-03 23:49:23 +00:00
PYTHON ?= python
ROOT = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
_default: compile
2015-11-01 17:00:43 +00:00
clean:
rm -fr dist/ doc/_build/ *.egg-info uvloop/loop.*.pyd
rm -fr uvloop/*.c uvloop/*.html uvloop/*.so
2016-04-14 16:53:08 +00:00
rm -fr uvloop/handles/*.html uvloop/includes/*.html
find . -name '__pycache__' | xargs rm -rf
2015-11-01 17:00:43 +00:00
2018-05-30 18:35:11 +00:00
ci-clean: clean
rm -fr build/lib.* build/temp.* build/libuv
clean-libuv:
(cd vendor/libuv; git clean -dfX)
2015-11-03 23:49:23 +00:00
distclean: clean clean-libuv
rm -fr build/
2017-11-10 22:24:00 +00:00
setup-build:
$(PYTHON) setup.py build_ext --inplace --cython-always
2017-11-10 22:24:00 +00:00
compile: clean setup-build
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
2015-11-10 22:41:22 +00:00
docs:
$(PYTHON) setup.py build_ext --inplace build_sphinx
2016-05-08 04:30:27 +00:00
2015-11-10 22:41:22 +00:00
test:
2021-02-09 18:44:08 +00:00
PYTHONASYNCIODEBUG=1 $(PYTHON) -m unittest -v tests.suite
$(PYTHON) -m unittest -v tests.suite
testinstalled:
cd "$${HOME}" && $(PYTHON) $(ROOT)/tests/__init__.py