2016-01-11 21:05:27 +00:00
|
|
|
.PHONY: compile clean all distclean test debug
|
2015-11-03 23:49:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
all: clean compile
|
2015-11-01 17:00:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2015-11-03 17:42:21 +00:00
|
|
|
rm -fdr uvloop/*.c uvloop/*.html uvloop/*.so build *.egg-info
|
2016-01-11 22:05:38 +00:00
|
|
|
rm -fdr uvloop/handles/*.html uvloop/includes/*.html
|
2015-11-03 17:42:21 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2015-11-04 02:21:30 +00:00
|
|
|
compile: clean
|
2015-11-26 01:35:36 +00:00
|
|
|
echo "DEF DEBUG = 0" > uvloop/__debug.pxi
|
2016-01-11 21:08:32 +00:00
|
|
|
cython -3 uvloop/loop.pyx; rm uvloop/__debug.*
|
2015-11-26 01:35:36 +00:00
|
|
|
python3 setup.py build_ext --inplace
|
|
|
|
|
|
|
|
|
|
|
|
debug: clean
|
|
|
|
echo "DEF DEBUG = 1" > uvloop/__debug.pxi
|
2016-02-03 23:32:51 +00:00
|
|
|
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
|