Merge pull request #1073 from Kurlov/master

remove uvloop for windows setup
This commit is contained in:
Raphael Deem 2017-12-29 14:56:38 -08:00 committed by GitHub
commit c93de9450a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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