From 96976fa892c2b20a55fca6632dbbe2debff69642 Mon Sep 17 00:00:00 2001 From: Aleksandr Kurlov Date: Fri, 29 Dec 2017 23:04:22 +0500 Subject: [PATCH] remove uvloop for windows setup --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3f8cd7ce..a258d58a 100644 --- a/setup.py +++ b/setup.py @@ -65,7 +65,8 @@ if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): print("Installing without uJSON") requirements.remove(ujson) -if strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")): +# 'nt' means windows OS +if strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")) or os.name == 'nt': print("Installing without uvLoop") requirements.remove(uvloop)