import re
import os
import subprocess as sp
-from setuptools import setup, find_packages, Extension # type: ignore
-from distutils.command.build_ext import build_ext # type: ignore
+from setuptools import setup, find_packages, Extension
+from distutils.command.build_ext import build_ext
from distutils import log
try:
- from Cython.Build import cythonize # type: ignore
+ from Cython.Build import cythonize
except ImportError:
cythonize = None
"""
-class our_build_ext(build_ext): # type: ignore
+class our_build_ext(build_ext):
def finalize_options(self) -> None:
self._setup_ext_build()
super().finalize_options()
try:
from Cython.Build import cythonize
except ImportError:
- log.warn(
- "Cython is not available: the C module will not be built", ()
- )
+ log.warn("Cython is not available: the C module will not be built")
return
try: