From 54a05f8365f1e607636ca093493b453fa3cd7fb0 Mon Sep 17 00:00:00 2001 From: omerbn Date: Sun, 24 Sep 2017 15:38:43 +0300 Subject: [PATCH] supporting windows users --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7de7d951..812ab4f6 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ from distutils.errors import DistutilsPlatformError from distutils.util import strtobool from setuptools import setup +from sys import platform def open_local(paths, mode='r', encoding='utf8'): @@ -65,7 +66,7 @@ if strtobool(os.environ.get("SANIC_NO_UJSON", "no")): print("Installing without uJSON") requirements.remove(ujson) -if True or strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")): +if platform == "win32" or strtobool(os.environ.get("SANIC_NO_UVLOOP", "no")): print("Installing without uvLoop") requirements.remove(uvloop)