We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ced283f + f5d49b7 commit 12badb7Copy full SHA for 12badb7
.pre-commit-config.yaml
@@ -25,3 +25,6 @@ repos:
25
rev: v1.13.0
26
hooks:
27
- id: mypy
28
+ additional_dependencies:
29
+ - cython
30
+ - setuptools
src/witty/compile_module.py
@@ -13,16 +13,12 @@
13
from Cython.Build import cythonize
14
from Cython.Build.Inline import build_ext
15
from Cython.Utils import get_cython_cache_dir
16
+from setuptools import Distribution, Extension
17
18
if TYPE_CHECKING:
19
from collections.abc import Iterator, Sequence
20
from types import ModuleType
21
-try:
22
- from distutils.core import Distribution, Extension # until Python 3.11
23
-except ImportError:
24
- from setuptools import Distribution, Extension
-
def compile_module(
source_pyx: str,
0 commit comments