uvloop/Makefile

37 lines
781 B
Makefile
Raw Normal View History

.PHONY: compile clean all distclean test debug sdist
2015-11-03 23:49:23 +00:00
all: clean compile
2015-11-01 17:00:43 +00:00
clean:
rm -fdr uvloop/*.c uvloop/*.html uvloop/*.so build *.egg-info
rm -fdr uvloop/handles/*.html uvloop/includes/*.html
find . -name '__pycache__' | xargs rm -rf
2015-11-01 17:00:43 +00:00
2015-11-09 19:26:34 +00:00
distclean: clean
2015-11-03 23:49:23 +00:00
git -C vendor/libuv clean -dfX
compile: clean
echo "DEF DEBUG = 0" > uvloop/__debug.pxi
cython -3 uvloop/loop.pyx; rm uvloop/__debug.*
python3 setup.py build_ext --inplace
debug: clean
echo "DEF DEBUG = 1" > uvloop/__debug.pxi
cython -3 -a -p uvloop/loop.pyx; rm uvloop/__debug.*
2015-11-01 17:00:43 +00:00
python3 setup.py build_ext --inplace
2015-11-10 22:41:22 +00:00
test:
2015-11-20 20:33:43 +00:00
PYTHONASYNCIODEBUG=1 python3 -m unittest discover -s tests
python3 -m unittest discover -s tests
sdist: clean compile test
git -C vendor/libuv clean -dfX
python3 setup.py sdist