pub fn build_source_distribution(&self) -> Result<Option<BuiltWheelMetadata>> {
        fs::create_dir_all(&self.out)
            .context("Failed to create the target directory for the source distribution")?;

        match get_pyproject_toml(self.manifest_path.parent().unwrap()) {
            Ok(pyproject) => {
                let sdist_path = source_distribution(
                    &self.out,
                    &self.metadata21,
                    &self.manifest_path,
                    &self.cargo_metadata,
                    pyproject.sdist_include(),
                )
                .context("Failed to build source distribution")?;
                Ok(Some((sdist_path, "source".to_string())))
            }
            Err(_) => Ok(None),
        }
    }
/// Builds a source distribution and returns the same metadata as [BuildContext::build_wheels]
Builds a source distribution and returns the same metadata as [BuildContext::build_wheels]
Builds a source distribution and returns the same metadata as [ BuildContext :: build_wheels ]
pub fn build_source_distribution(&self) -> Result<Option<BuiltWheelMetadata>> {
        fs::create_dir_all(&self.out)
            .context("Failed to create the target directory for the source distribution")?;
        match get_pyproject_toml(self.manifest_path.parent().unwrap()) {
            Ok(pyproject) => {
                let sdist_path = source_distribution(
                    &self.out,
                    &self.metadata21,
                    &self.manifest_path,
                    &self.cargo_metadata,
                    pyproject.sdist_include(),
                )
                .context("Failed to build source distribution")?;
                Ok(Some((sdist_path, "source".to_string())))
            }
            Err(_) => Ok(None),
        }
    }
pub fn build_source_distribution ( & self ) -> Result < Option < BuiltWheelMetadata > > { fs :: create_dir_all ( & self . out ) . context ( " " ) ? ; match get_pyproject_toml ( self . manifest_path . parent ( ) . unwrap ( ) ) { Ok ( pyproject ) => { let sdist_path = source_distribution ( & self . out , & self . metadata21 , & self . manifest_path , & self . cargo_metadata , pyproject . sdist_include ( ) , ) . context ( " " ) ? ; Ok ( Some ( ( sdist_path , " " . to_string ( ) ) ) ) } Err ( _ ) => Ok ( None ) , } }
Builds a source distribution and returns the same metadata as [BuildContext::build_wheels]
Builds a source distribution and returns the same metadata as [ BuildContext :: build_wheels ]
&self
&self