From c64d56a0ec942aebf857494e66c1c4ff0c6088e9 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 12 Apr 2016 10:28:39 -0400 Subject: [PATCH] make: Add sdist-upload and clean-libuv targets --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2ac8980..f9cf54b 100644 --- a/Makefile +++ b/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