77# Winloop comment: winloop now supports both Windows and non-Windows.
88# Below uvloop's setup.py is merged with winloop's previous setup.py.
99
10+
1011import os
1112import os .path
1213import pathlib
2122
2223# Using a newer version of cython since versions are no longer a threat.
2324# Cython Decided to keep DEF Statements.
24- CYTHON_DEPENDENCY = 'Cython= =3.1.2'
25+ CYTHON_DEPENDENCY = 'Cython> =3.1.2'
2526MACHINE = platform .machine ()
2627MODULES_CFLAGS = [os .getenv ('UVLOOP_OPT_CFLAGS' , '-O2' )]
2728_ROOT = pathlib .Path (__file__ ).parent
@@ -86,7 +87,7 @@ def initialize_options(self):
8687 super ().initialize_options ()
8788 self .use_system_libuv = False
8889 self .cython_always = False
89- self .cython_annotate = None
90+ self .cython_annotate = False
9091 self .cython_directives = None
9192
9293 def finalize_options (self ):
@@ -242,6 +243,7 @@ def build_extensions(self):
242243if sys .platform == 'win32' :
243244 from Cython .Build import cythonize
244245 from Cython .Compiler .Main import default_options
246+
245247 default_options ['compile_time_env' ] = dict (DEFAULT_FREELIST_SIZE = 250 )
246248 ext = cythonize ([
247249 Extension (
@@ -267,8 +269,8 @@ def build_extensions(self):
267269 define_macros = [
268270 ("WIN32_LEAN_AND_MEAN" , 1 ),
269271 ("_WIN32_WINNT" , "0x0602" )
270- ]
271- )
272+ ],
273+ ),
272274 ])
273275else :
274276 ext = [
0 commit comments