setup: uvloop requires unix/linux and Python >= 3.5 for now

This commit is contained in:
Yury Selivanov 2016-04-12 18:46:45 -04:00
parent 559fca38fd
commit 8cf90c7c1b
1 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,13 @@ import os
import subprocess
import sys
if sys.platform in ('win32', 'cygwin', 'cli'):
raise RuntimeError('uvloop does not support Windows at the moment')
if sys.version_info < (3, 5):
raise RuntimeError('uvloop requires Python 3.5 or greater')
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext