mirror of https://github.com/MagicStack/uvloop.git
make: Add sdist-upload and clean-libuv targets
This commit is contained in:
parent
11ab111918
commit
c64d56a0ec
14
Makefile
14
Makefile
|
@ -1,4 +1,4 @@
|
|||
.PHONY: compile clean all distclean test debug sdist
|
||||
.PHONY: compile clean all distclean test debug sdist clean-libuv sdist-upload
|
||||
|
||||
|
||||
all: clean compile
|
||||
|
@ -10,10 +10,13 @@ clean:
|
|||
find . -name '__pycache__' | xargs rm -rf
|
||||
|
||||
|
||||
distclean: clean
|
||||
clean-libuv:
|
||||
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.*
|
||||
|
@ -31,6 +34,9 @@ test:
|
|||
python3 -m unittest discover -s tests
|
||||
|
||||
|
||||
sdist: clean compile test
|
||||
git -C vendor/libuv clean -dfX
|
||||
sdist: clean compile test clean-libuv
|
||||
python3 setup.py sdist
|
||||
|
||||
|
||||
sdist-upload: clean compile test clean-libuv
|
||||
python3 setup.py sdist
|
||||
|
|
Loading…
Reference in New Issue