From 5dc299b7889461c49b27ec8ced1050b5a3f9099c Mon Sep 17 00:00:00 2001 From: YoSTEALTH <35307184+YoSTEALTH@users.noreply.github.com> Date: Wed, 19 Feb 2020 07:19:15 -0600 Subject: [PATCH] updated cython version check --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9dfd32d8..46b512ee 100644 --- a/setup.py +++ b/setup.py @@ -120,11 +120,12 @@ def finalize_options(self): if need_cythonize: try: import Cython + from distutils.version import LooseVersion except ImportError: raise RuntimeError( 'please install Cython to compile uvloop from source') - if Cython.__version__ < '0.28': + if LooseVersion(Cython.__version__) < LooseVersion('0.28'): raise RuntimeError( 'uvloop requires Cython version 0.28 or greater')