|
52 | 52 |
|
53 | 53 |
|
54 | 54 | # noinspection PyCallingNonCallable |
55 | | -if cythonize is not None: |
56 | | - if "win32" != sys.platform: |
57 | | - REQUIRES_OPTIMIZATION = [ |
58 | | - setuptools.Extension("threaded.class_decorator", ["threaded/class_decorator.pyx"]), |
59 | | - setuptools.Extension("threaded._base_threaded", ["threaded/_base_threaded.py"]), |
60 | | - setuptools.Extension("threaded._asynciotask", ["threaded/_asynciotask.pyx"]), |
61 | | - setuptools.Extension("threaded._threaded", ["threaded/_threaded.pyx"]), |
62 | | - setuptools.Extension("threaded._threadpooled", ["threaded/_threadpooled.py"]), |
63 | | - setuptools.Extension("threaded.__init__", ["threaded/__init__.pyx"]), |
64 | | - ] |
65 | | - else: |
66 | | - REQUIRES_OPTIMIZATION = [] |
| 55 | +if cythonize is not None and "win32" != sys.platform: |
| 56 | + REQUIRES_OPTIMIZATION = [ |
| 57 | + setuptools.Extension("threaded.class_decorator", ["threaded/class_decorator.pyx"]), |
| 58 | + setuptools.Extension("threaded._base_threaded", ["threaded/_base_threaded.py"]), |
| 59 | + setuptools.Extension("threaded._asynciotask", ["threaded/_asynciotask.pyx"]), |
| 60 | + setuptools.Extension("threaded._threaded", ["threaded/_threaded.pyx"]), |
| 61 | + setuptools.Extension("threaded._threadpooled", ["threaded/_threadpooled.py"]), |
| 62 | + setuptools.Extension("threaded.__init__", ["threaded/__init__.pyx"]), |
| 63 | + ] |
67 | 64 | INTERFACES = ["class_decorator.pxd", "_asynciotask.pxd", "_threaded.pxd"] |
68 | 65 |
|
69 | 66 | EXT_MODULES = cythonize( |
|
0 commit comments