Skip to content

Commit 4bbe38a

Browse files
committed
Do not cythonize on windows: not supported
1 parent c8a4756 commit 4bbe38a

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

setup.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,15 @@
5252

5353

5454
# 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+
]
6764
INTERFACES = ["class_decorator.pxd", "_asynciotask.pxd", "_threaded.pxd"]
6865

6966
EXT_MODULES = cythonize(

0 commit comments

Comments
 (0)