diff --git a/conda_smithy/linter/hints.py b/conda_smithy/linter/hints.py index 43f46ead1..d79ba0cb9 100644 --- a/conda_smithy/linter/hints.py +++ b/conda_smithy/linter/hints.py @@ -181,6 +181,13 @@ def hint_check_spdx(about_section, hints): def hint_pip_no_build_backend(host_or_build_section, package_name, hints): + # we do NOT exclude all build backends since some of them + # need another backend to bootstrap + # the list below are the ones that self-bootstrap without + # another build backend + if package_name in ["pdm-backend", "setuptools"]: + return + if host_or_build_section and any( req.split(" ")[0] == "pip" for req in host_or_build_section ): diff --git a/news/2046-pip-hint-exclude.rst b/news/2046-pip-hint-exclude.rst new file mode 100644 index 000000000..be47a422f --- /dev/null +++ b/news/2046-pip-hint-exclude.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Fixed error where some python build backends were flagged as not having a backend. (#2046) + +**Security:** + +*