Skip to content

Commit

Permalink
updated cython version check
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH authored and 1st1 committed Feb 20, 2020
1 parent 35f8250 commit 5dc299b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 5dc299b

Please sign in to comment.