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'], packages=['sanic'],
platforms='any', platforms='any',
install_requires=[ install_requires=[
'uvloop>=0.5.3', 'uvloop>=0.5.3;platform_system!="Windows"',
'httptools>=0.0.9', 'httptools>=0.0.9',
'ujson>=1.35', 'ujson>=1.35',
'aiofiles>=0.3.0', 'aiofiles>=0.3.0',