remove uvloop for windows setup

This commit is contained in:
Aleksandr Kurlov 2017-12-29 23:04:22 +05:00
parent c14e99cef0
commit 96976fa892

View File

@ -65,7 +65,8 @@ if strtobool(os.environ.get("SANIC_NO_UJSON", "no")):
print("Installing without uJSON") print("Installing without uJSON")
requirements.remove(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") print("Installing without uvLoop")
requirements.remove(uvloop) requirements.remove(uvloop)