Skip to content

Commit 5dc299b

Browse files
YoSTEALTH1st1
authored andcommitted
updated cython version check
1 parent 35f8250 commit 5dc299b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,12 @@ def finalize_options(self):
120120
if need_cythonize:
121121
try:
122122
import Cython
123+
from distutils.version import LooseVersion
123124
except ImportError:
124125
raise RuntimeError(
125126
'please install Cython to compile uvloop from source')
126127

127-
if Cython.__version__ < '0.28':
128+
if LooseVersion(Cython.__version__) < LooseVersion('0.28'):
128129
raise RuntimeError(
129130
'uvloop requires Cython version 0.28 or greater')
130131

0 commit comments

Comments
 (0)