From 8cf90c7c1b1ffd736e07221a6b4fa5fd7d7a158b Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Tue, 12 Apr 2016 18:46:45 -0400 Subject: [PATCH] setup: uvloop requires unix/linux and Python >= 3.5 for now --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 6eecdab..7bf07b1 100644 --- a/setup.py +++ b/setup.py @@ -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