Skip to content

Commit 8b4535a

Browse files
Merge pull request #116 from pypr/use-cython-extension
Use Cython's Extension class instead of distutils'.
2 parents bf5a008 + 2a7c137 commit 8b4535a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compyle/ext_module.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@
1717
import sys
1818
import time
1919

20-
# Conditional/Optional imports.
21-
if sys.platform == 'win32':
22-
from setuptools.extension import Extension
23-
else:
24-
from distutils.extension import Extension
20+
from Cython.Distutils import Extension
2521

2622
# Package imports.
2723
from .config import get_config # noqa: 402
@@ -255,6 +251,7 @@ def build(self, force=False):
255251
extension = Extension(
256252
name=self.name, sources=[self.src_path],
257253
include_dirs=inc_dirs,
254+
cython_include_dirs=inc_dirs,
258255
extra_compile_args=extra_compile_args,
259256
extra_link_args=extra_link_args,
260257
language="c++"

0 commit comments

Comments
 (0)