You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -190,29 +244,15 @@ impl Display for MissingHeaderCause {
190
244
iflet(Some(package_name),Some(package_version)) =
191
245
(&self.package_name,&self.package_version)
192
246
{
193
-
write!(
247
+
hint_build_dependency(
194
248
f,
195
-
"This error likely indicates that `{}` depends on `{}`, but doesn't declare it as a build dependency. If `{}` is a first-party package, consider adding `{}` to its `{}`. Otherwise, `{}` into the environment and re-run with `{}`.",
"This error likely indicates that `{}` depends on `{}`, but doesn't declare it as a build dependency. If `{}` is a first-party package, consider adding `{}` to its `{}`. Otherwise, `{}` into the environment and re-run with `{}`.",
208
-
version_id.cyan(),
209
-
package.cyan(),
210
-
version_id.cyan(),
211
-
package.cyan(),
212
-
"build-system.requires".green(),
213
-
format!("uv pip install {package}").green(),
214
-
"--no-build-isolation".green(),
215
-
)
254
+
let package_name = extract_package_name(version_id);
let formatted = anstream::adapter::strip_str(&formatted);
568
-
insta::assert_snapshot!(formatted, @r###"
617
+
insta::assert_snapshot!(formatted, @r#"
569
618
Failed building wheel through setup.py (exit code: 0)
570
619
571
620
[stderr]
@@ -576,8 +625,13 @@ mod test {
576
625
577
626
error: invalid command 'bdist_wheel'
578
627
579
-
hint: This error likely indicates that `pygraphviz-1.11` depends on `wheel`, but doesn't declare it as a build dependency. If `pygraphviz-1.11` is a first-party package, consider adding `wheel` to its `build-system.requires`. Otherwise, `uv pip install wheel` into the environment and re-run with `--no-build-isolation`.
580
-
"###);
628
+
hint: This error likely indicates that `pygraphviz-1.11` depends on `wheel`, but doesn't declare it as a build dependency. If `pygraphviz-1.11` is a first-party package, consider adding `wheel` to its `build-system.requires`. Otherwise, either add it to your `pyproject.toml` under:
629
+
630
+
[tool.uv.extra-build-dependencies]
631
+
"pygraphviz-1.11" = ["wheel"]
632
+
633
+
or `uv pip install wheel` into the environment and re-run with `--no-build-isolation`.
0 commit comments