uvloop/Makefile

44 lines
903 B
Makefile
Raw Normal View History

.PHONY: compile clean all distclean test debug sdist clean-libuv sdist-upload
2015-11-03 23:49:23 +00:00
all: clean compile
2015-11-01 17:00:43 +00:00
clean:
2016-04-14 16:53:08 +00:00
rm -fr dist/
rm -fr uvloop/*.c uvloop/*.html uvloop/*.so build *.egg-info
rm -fr uvloop/handles/*.html uvloop/includes/*.html
find . -name '__pycache__' | xargs rm -rf
2015-11-01 17:00:43 +00:00
clean-libuv:
2015-11-03 23:49:23 +00:00
git -C vendor/libuv clean -dfX
distclean: clean clean-libuv
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 clean-libuv
python3 setup.py sdist
sdist-upload: clean compile test clean-libuv
2016-04-12 17:23:22 +00:00
python3 setup.py sdist upload