diff --git a/src/auditwheel/audit.rs b/src/auditwheel/audit.rs index 3b7871693..993cd0d63 100644 --- a/src/auditwheel/audit.rs +++ b/src/auditwheel/audit.rs @@ -353,7 +353,7 @@ pub fn auditwheel_rs( } else if let Some(policy) = highest_policy { Ok(policy) } else { - println!( + eprintln!( "⚠️ Warning: No compatible platform tag found, using the linux tag instead. \ You won't be able to upload those wheels to PyPI." ); diff --git a/src/build_context.rs b/src/build_context.rs index c50124073..0bfd52920 100644 --- a/src/build_context.rs +++ b/src/build_context.rs @@ -232,7 +232,7 @@ impl BuildContext { InterpreterKind::PyPy => "PyPy".to_string(), }) .collect(); - println!( + eprintln!( "⚠️ Warning: {} does not yet support abi3 so the build artifacts will be version-specific.", interp_names.iter().join(", ") ); @@ -321,7 +321,7 @@ impl BuildContext { } let new_rpath = new_rpaths.join(":"); if let Err(err) = patchelf::set_rpath(&artifact.path, &new_rpath) { - println!( + eprintln!( "⚠️ Warning: Failed to set rpath for {}: {}", artifact.path.display(), err diff --git a/src/build_options.rs b/src/build_options.rs index fab0b4f44..c6836a1e7 100644 --- a/src/build_options.rs +++ b/src/build_options.rs @@ -920,7 +920,7 @@ pub fn find_bridge(cargo_metadata: &Metadata, bridge: Option<&str>) -> Result
Result<()> { } if !found { - println!( + eprintln!( "⚠️ Warning: Couldn't find the symbol `{}` in the native library. \ Python will fail to import this module. \ If you're using pyo3, check that `#[pymodule]` uses `{}` as module name", diff --git a/src/main.rs b/src/main.rs index f5b244bf2..086654d69 100644 --- a/src/main.rs +++ b/src/main.rs @@ -422,7 +422,7 @@ fn run() -> Result<()> { #[cfg(feature = "upload")] Opt::Upload { publish, files } => { if files.is_empty() { - println!("⚠️ Warning: No files given, exiting."); + eprintln!("⚠️ Warning: No files given, exiting."); return Ok(()); } diff --git a/src/source_distribution.rs b/src/source_distribution.rs index 090d5e615..b44c54997 100644 --- a/src/source_distribution.rs +++ b/src/source_distribution.rs @@ -515,7 +515,7 @@ pub fn source_distribution( }; writer.add_file(root_dir.join(relative_cargo_lock), &cargo_lock_path)?; } else { - println!( + eprintln!( "⚠️ Warning: Cargo.lock is not found, it is recommended \ to include it in the source distribution" );