From d3e6e5516bb976ca17294840e7030ff80a9a61f7 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Trevisani Date: Wed, 20 Sep 2023 19:16:50 +0100 Subject: [PATCH] Add compiler in case that is a cython tool --- grayskull/strategy/py_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)