Don't ask for uvloop on windows

This is a tricky issue, but essentially uvloop is unavailable on windows. This means for windows users, we have to install Sanic with no requirements, and then manually specify all requirements apart from uvloop.

However, Sanic will work with standard asyncio event loop. So, I propose we remove the uvloop requirement on windows. This patch doesn't touch any demo imports.
This commit is contained in:
Angus Hollands 2017-02-10 13:14:36 +00:00 committed by GitHub
parent 2bfd127218
commit 1436fb3ef4

View File

@ -26,7 +26,7 @@ setup(
packages=['sanic'],
platforms='any',
install_requires=[
'uvloop>=0.5.3',
'uvloop>=0.5.3;platform_system!="Windows"',
'httptools>=0.0.9',
'ujson>=1.35',
'aiofiles>=0.3.0',