supporting windows users

This commit is contained in:
omerbn 2017-09-24 15:38:43 +03:00 committed by GitHub
parent bbb5419ffe
commit 54a05f8365

View File

@ -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)