diff --git a/grayskull/strategy/py_base.py b/grayskull/strategy/py_base.py index fc04cfc92..df4289742 100644 --- a/grayskull/strategy/py_base.py +++ b/grayskull/strategy/py_base.py @@ -473,9 +473,9 @@ def get_compilers( for pkg in requires_dist: pkg = RE_DEPS_NAME.match(pkg).group(0) pkg = pkg.lower().strip() - if pkg.strip() in config.pkg_need_c_compiler: + if pkg.startswith("cython-") or pkg in config.pkg_need_c_compiler: compilers.add("c") - if pkg.strip() in config.pkg_need_cxx_compiler: + if pkg in config.pkg_need_cxx_compiler: compilers.add("cxx") return list(compilers)