Skip to content

Commit

Permalink
inline error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jun 10, 2024
1 parent a0c371a commit 43d5b00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rapids_build_backend/impls.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,12 @@ def _check_setup_py(setup_py_contents: str) -> None:
setup_requires_pat = r"^(?!\s*#+).*setup_requires"

if re.search(setup_requires_pat, setup_py_contents, re.M) is not None:
error_msg = (
raise ValueError(
"Detected use of 'setup_requires' in a setup.py file. "
"rapids-build-backend does not support this pattern. Try moving "
"that list of dependencies into the 'requires' list in the "
"[tool.rapids-build-backend] table in pyproject.toml."
)
raise ValueError(error_msg)


# The hooks in this file could be defined more programmatically by iterating over the
Expand Down

0 comments on commit 43d5b00

Please sign in to comment.