uvloop/Makefile

59 lines
1.1 KiB
Makefile
Raw Permalink 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
_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:
PYTHONASYNCIODEBUG=1 $(PYTHON) setup.py test
$(PYTHON) setup.py test
testinstalled:
$(PYTHON) tests/__init__.py
release: distclean compile test
$(PYTHON) setup.py sdist bdist_wheel upload