From fc40d526777e63df839d199926849f8801876ff6 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Trevisani Date: Wed, 20 Sep 2023 19:15:43 +0100 Subject: [PATCH 1/2] Support for cython-blis --- grayskull/config.py | 4 +++- grayskull/strategy/pypi.py | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/grayskull/config.py b/grayskull/config.py index f13453c65..c3a961c17 100644 --- a/grayskull/config.py +++ b/grayskull/config.py @@ -32,7 +32,9 @@ class Configuration: ] ) is_strict_cf: bool = False - pkg_need_c_compiler: Tuple = field(default_factory=lambda: ("cython",)) + pkg_need_c_compiler: Tuple = field( + default_factory=lambda: ("cython", "cython-blis", "blis") + ) pkg_need_cxx_compiler: Tuple = field(default_factory=lambda: ("pybind11",)) url_pypi_metadata: str = "https://pypi.org/pypi/{pkg_name}/json" download: bool = False diff --git a/grayskull/strategy/pypi.py b/grayskull/strategy/pypi.py index 94b47bc67..b49f97db8 100644 --- a/grayskull/strategy/pypi.py +++ b/grayskull/strategy/pypi.py @@ -84,7 +84,6 @@ def get_val(key): source_section["url"] = adjust_source_url_to_include_placeholders( source_section["url"], get_val("version") ) - return { "author": get_val("author"), "name": get_val("name"), From d3e6e5516bb976ca17294840e7030ff80a9a61f7 Mon Sep 17 00:00:00 2001 From: Marcelo Duarte Trevisani Date: Wed, 20 Sep 2023 19:16:50 +0100 Subject: [PATCH 2/2] 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)