Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support for cython blis compilers #492

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion grayskull/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions grayskull/strategy/py_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion grayskull/strategy/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
Loading