Skip to content

Commit

Permalink
Remove default manifest path for maturin sdist command
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Sep 11, 2022
1 parent ee27848 commit 734ce73
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,9 @@ enum Opt {
/// This command is a workaround for [pypa/pip#6041](https://github.com/pypa/pip/issues/6041)
#[clap(name = "sdist")]
SDist {
#[clap(
short = 'm',
long = "manifest-path",
parse(from_os_str),
default_value = "Cargo.toml"
)]
#[clap(short = 'm', long = "manifest-path", parse(from_os_str))]
/// The path to the Cargo.toml
manifest_path: PathBuf,
manifest_path: Option<PathBuf>,
/// The directory to store the built wheels in. Defaults to a new "wheels"
/// directory in the project's target directory
#[clap(short, long, parse(from_os_str))]
Expand Down Expand Up @@ -413,7 +408,7 @@ fn run() -> Result<()> {
let build_options = BuildOptions {
out,
cargo: CargoOptions {
manifest_path: Some(manifest_path),
manifest_path,
..Default::default()
},
..Default::default()
Expand Down

0 comments on commit 734ce73

Please sign in to comment.