Skip to content

Commit a637877

Browse files
committed
setup.py: Check correct Cython version; fix linting errors
1 parent b2bdaae commit a637877

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

setup.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
import sys
77

88

9+
from setuptools import setup, Extension
10+
from setuptools.command.build_ext import build_ext as build_ext
11+
from setuptools.command.sdist import sdist as sdist
12+
13+
914
if sys.platform in ('win32', 'cygwin', 'cli'):
1015
raise RuntimeError('uvloop does not support Windows at the moment')
1116

@@ -17,11 +22,6 @@
1722
raise RuntimeError('uvloop requires Python 3.5 or 3.6b3 or greater')
1823

1924

20-
from setuptools import setup, Extension
21-
from setuptools.command.build_ext import build_ext as build_ext
22-
from setuptools.command.sdist import sdist as sdist
23-
24-
2525
VERSION = '0.9.2.dev0'
2626
CFLAGS = ['-O2']
2727
LIBUV_DIR = os.path.join(os.path.dirname(__file__), 'vendor', 'libuv')
@@ -117,9 +117,9 @@ def finalize_options(self):
117117
raise RuntimeError(
118118
'please install Cython to compile uvloop from source')
119119

120-
if Cython.__version__ < '0.24':
120+
if Cython.__version__ < '0.28':
121121
raise RuntimeError(
122-
'uvloop requires Cython version 0.24 or greater')
122+
'uvloop requires Cython version 0.28 or greater')
123123

124124
from Cython.Build import cythonize
125125

0 commit comments

Comments
 (0)