Skip to main content

package_python

Function package_python 

Source
pub fn package_python(
    config: &ResolvedCrateConfig,
    target: &RustTarget,
    workspace_root: &Path,
    output_dir: &Path,
    version: &str,
) -> Result<Vec<PackageArtifact>>
Expand description

Package Python wheels and/or sdist.

Produces one or more artifacts:

  • {name}-{version}-*.whl — platform wheel(s) from target/wheels/
  • {name}-{version}.tar.gz — sdist (when sdist = true)

The wheel and sdist flags default to true when None.