mirror of https://github.com/MagicStack/uvloop.git
48 lines
959 B
Makefile
48 lines
959 B
Makefile
.PHONY: compile clean all distclean test debug sdist clean-libuv release sdist-libuv
|
|
|
|
|
|
all: clean compile
|
|
|
|
|
|
clean:
|
|
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
|
|
|
|
|
|
clean-libuv:
|
|
git -C vendor/libuv clean -dfX
|
|
|
|
|
|
sdist-libuv: clean-libuv
|
|
/bin/sh vendor/libuv/autogen.sh
|
|
|
|
|
|
distclean: clean clean-libuv
|
|
|
|
|
|
compile: clean
|
|
echo "DEF DEBUG = 0" > uvloop/__debug.pxi
|
|
cython -3 uvloop/loop.pyx; rm uvloop/__debug.*
|
|
python setup.py build_ext --inplace
|
|
|
|
|
|
debug: clean
|
|
echo "DEF DEBUG = 1" > uvloop/__debug.pxi
|
|
cython -3 -a -p uvloop/loop.pyx; rm uvloop/__debug.*
|
|
python setup.py build_ext --inplace
|
|
|
|
|
|
test:
|
|
PYTHONASYNCIODEBUG=1 python -m unittest discover -s tests
|
|
python -m unittest discover -s tests
|
|
|
|
|
|
sdist: clean compile test sdist-libuv
|
|
python setup.py sdist
|
|
|
|
|
|
release: clean compile test sdist-libuv
|
|
python setup.py sdist upload
|