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

        let wheels = match &self.bridge {
            BridgeModel::Cffi => vec![(self.build_cffi_wheel()?, "py3".to_string())],
            BridgeModel::Bin => vec![(self.build_bin_wheel()?, "py3".to_string())],
            BridgeModel::Bindings(_) => self.build_binding_wheels()?,
            BridgeModel::BindingsAbi3(major, minor) => vec![(
                self.build_binding_wheel_abi3(*major, *minor)?,
                format!("cp{}{}", major, minor),
            )],
        };

        Ok(wheels)
    }
/// Checks which kind of bindings we have (pyo3/rust-cypthon or cffi or bin) and calls the
/// correct builder. Returns a Vec that contains location, python tag (e.g. py3 or cp35)
/// and for bindings the python interpreter they bind against.
Checks which kind of bindings we have (pyo3/rust-cypthon or cffi or bin) and calls the
correct builder. Returns a Vec that contains location, python tag
and for bindings the python interpreter they bind against.
Checks which kind of bindings we have ( pyo3 / rust - cypthon or cffi or bin ) and calls the correct builder . Returns a Vec that contains location python tag and for bindings the python interpreter they bind against .
pub fn build_wheels(&self) -> Result<Vec<BuiltWheelMetadata>> {
        fs::create_dir_all(&self.out)
            .context("Failed to create the target directory for the wheels")?;
        let wheels = match &self.bridge {
            BridgeModel::Cffi => vec![(self.build_cffi_wheel()?, "py3".to_string())],
            BridgeModel::Bin => vec![(self.build_bin_wheel()?, "py3".to_string())],
            BridgeModel::Bindings(_) => self.build_binding_wheels()?,
            BridgeModel::BindingsAbi3(major, minor) => vec![(
                self.build_binding_wheel_abi3(*major, *minor)?,
                format!("cp{}{}", major, minor),
            )],
        };
        Ok(wheels)
    }
pub fn build_wheels ( & self ) -> Result < Vec < BuiltWheelMetadata > > { fs :: create_dir_all ( & self . out ) . context ( " " ) ? ; let wheels = match & self . bridge { BridgeModel :: Cffi => vec ! [ ( self build_cffi_wheel ( ) " " to_string ( ) ) ] , BridgeModel :: Bin => vec ! [ ( self build_bin_wheel ( ) " " to_string ( ) ) ] , BridgeModel :: Bindings ( _ ) => self . build_binding_wheels ( ) ? , BridgeModel :: BindingsAbi3 ( major , minor ) => vec ! [ ( self build_binding_wheel_abi3 ( major minor ) format ( " " major minor ) ) ] , } ; Ok ( wheels ) }
Checks which kind of bindings we have (pyo3/rust-cypthon or cffi or bin) and calls the
correct builder.
Checks which kind of bindings we have ( pyo3 / rust - cypthon or cffi or bin ) and calls the correct builder .
&self
&self