Struct pyo3_pack::BuildContext[][src]

pub struct BuildContext {
    pub interpreter: Vec<String>,
    pub binding_crate: String,
    pub manifest_path: PathBuf,
    pub wheel_dir: Option<PathBuf>,
    pub use_cached: bool,
    pub debug: bool,
    pub skip_auditwheel: bool,
}

High level API for building wheels from a crate which can be also used for the CLI

Fields

The python versions to build wheels for, given as the names of the interpreters. Uses a built-in list if not explicitly set.

The crate providing the python bindings

The path to the Cargo.toml or the directory containing it

The directory to store the built wheels in. Defaults to a new "wheels" directory in the project's target directory

Don't rebuild if a wheel with the same name is already present

Do a debug build (don't pass --release to cargo)

Don't check for manylinux compliance

Methods

impl BuildContext
[src]

Builds wheels for a Cargo project for all given python versions. Returns the paths where the wheels are saved and the Python metadata describing the cargo project

Defaults to 2.7 and 3.{5, 6, 7, 8, 9} if not python versions are given and silently ignores all non-existent python versions. Runs auditwheel_rs().if the auditwheel feature isn't deactivated

Trait Implementations

impl Debug for BuildContext
[src]

Formats the value using the given formatter. Read more

impl StructOpt for BuildContext
[src]

Returns the corresponding clap::App.

Creates the struct from clap::ArgMatches. It cannot fail with a parameter generated by clap by construction. Read more

Gets the struct from the command line arguments. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Print the error message and quit the program in case of failure. Read more

Gets the struct from any iterator such as a Vec of your making. Read more

impl Clone for BuildContext
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for BuildContext
[src]

impl PartialEq for BuildContext
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Default for BuildContext
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations