Struct pyoxidizerlib::py_packaging::standalone_builder::StandalonePythonExecutableBuilder[][src]

pub struct StandalonePythonExecutableBuilder { /* fields omitted */ }

A self-contained Python executable before it is compiled.

Implementations

impl StandalonePythonExecutableBuilder[src]

pub fn from_distribution(
    host_distribution: Arc<dyn PythonDistribution>,
    target_distribution: Arc<StandaloneDistribution>,
    host_triple: String,
    target_triple: String,
    exe_name: String,
    link_mode: BinaryLibpythonLinkMode,
    packaging_policy: PythonPackagingPolicy,
    config: PyembedPythonInterpreterConfig
) -> Result<Box<Self>>
[src]

Trait Implementations

impl Clone for StandalonePythonExecutableBuilder[src]

fn clone(&self) -> StandalonePythonExecutableBuilder[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PythonBinaryBuilder for StandalonePythonExecutableBuilder[src]

fn clone_trait(&self) -> Arc<dyn PythonBinaryBuilder>[src]

Clone self into a Box’ed trait object.

fn name(&self) -> String[src]

The name of the binary.

How the binary will link against libpython.

fn target_triple(&self) -> &str[src]

Rust target triple the binary will run on.

fn vc_runtime_requirements(&self) -> Option<(String, VcRedistributablePlatform)>[src]

Obtain run-time requirements for the Visual C++ Redistributable. Read more

fn cache_tag(&self) -> &str[src]

Obtain the cache tag to apply to Python bytecode modules.

fn python_packaging_policy(&self) -> &PythonPackagingPolicy[src]

Obtain the PythonPackagingPolicy for the builder.

fn host_python_exe_path(&self) -> &Path[src]

Path to Python executable that can be used to derive info at build time. Read more

fn target_python_exe_path(&self) -> &Path[src]

Path to Python executable that is native to the target architecture.

fn apple_sdk_info(&self) -> Option<&AppleSdkInfo>[src]

Apple SDK build/targeting information.

fn windows_runtime_dlls_mode(&self) -> &WindowsRuntimeDllsMode[src]

Obtain how Windows runtime DLLs will be handled during builds. Read more

fn set_windows_runtime_dlls_mode(&mut self, value: WindowsRuntimeDllsMode)[src]

Set the value for windows_runtime_dlls_mode().

fn tcl_files_path(&self) -> &Option<String>[src]

The directory to install tcl/tk files into.

fn set_tcl_files_path(&mut self, value: Option<String>)[src]

Set the directory to install tcl/tk files into.

fn windows_subsystem(&self) -> &str[src]

The value of the windows_subsystem Rust attribute for the generated Rust project.

fn set_windows_subsystem(&mut self, value: &str) -> Result<()>[src]

Set the value of the windows_subsystem Rust attribute for generated Rust projects.

fn packed_resources_load_mode(&self) -> &PackedResourcesLoadMode[src]

How packed Python resources will be loaded by the binary.

fn set_packed_resources_load_mode(&mut self, load_mode: PackedResourcesLoadMode)[src]

Set how packed Python resources will be loaded by the binary.

fn iter_resources<'a>(
    &'a self
) -> Box<dyn Iterator<Item = (&'a String, &'a PrePackagedResource)> + 'a>
[src]

Obtain an iterator over all resource entries that will be embedded in the binary. Read more

fn index_package_license_info_from_resources<'a>(
    &mut self,
    resources: &[PythonResource<'a>]
) -> Result<()>
[src]

Resolve license metadata from an iterable of PythonResource and store that data. Read more

fn pip_download(
    &mut self,
    logger: &Logger,
    verbose: bool,
    args: &[String]
) -> Result<Vec<PythonResource<'_>>>
[src]

Runs pip download using the binary builder’s settings. Read more

fn pip_install(
    &mut self,
    logger: &Logger,
    verbose: bool,
    install_args: &[String],
    extra_envs: &HashMap<String, String>
) -> Result<Vec<PythonResource<'_>>>
[src]

Runs pip install using the binary builder’s settings. Read more

fn read_package_root(
    &mut self,
    _logger: &Logger,
    path: &Path,
    packages: &[String]
) -> Result<Vec<PythonResource<'_>>>
[src]

Reads Python resources from the filesystem.

fn read_virtualenv(
    &mut self,
    _logger: &Logger,
    path: &Path
) -> Result<Vec<PythonResource<'_>>>
[src]

Read Python resources from a populated virtualenv directory.

fn setup_py_install(
    &mut self,
    logger: &Logger,
    package_path: &Path,
    verbose: bool,
    extra_envs: &HashMap<String, String>,
    extra_global_arguments: &[String]
) -> Result<Vec<PythonResource<'_>>>
[src]

Runs python setup.py install using the binary builder’s settings. Read more

fn add_distribution_resources(
    &mut self,
    callback: Option<ResourceAddCollectionContextCallback<'_>>
) -> Result<()>
[src]

Add resources from the Python distribution to the builder. Read more

fn add_python_module_source(
    &mut self,
    module: &PythonModuleSource,
    add_context: Option<PythonResourceAddCollectionContext>
) -> Result<()>
[src]

Add a PythonModuleSource to the resources collection. Read more

fn add_python_package_resource(
    &mut self,
    resource: &PythonPackageResource,
    add_context: Option<PythonResourceAddCollectionContext>
) -> Result<()>
[src]

Add a PythonPackageResource to the resources collection. Read more

fn add_python_package_distribution_resource(
    &mut self,
    resource: &PythonPackageDistributionResource,
    add_context: Option<PythonResourceAddCollectionContext>
) -> Result<()>
[src]

Add a PythonPackageDistributionResource to the resources collection. Read more

fn add_python_extension_module(
    &mut self,
    extension_module: &PythonExtensionModule,
    add_context: Option<PythonResourceAddCollectionContext>
) -> Result<()>
[src]

Add a PythonExtensionModule to make available. Read more

fn add_file_data(
    &mut self,
    file: &File,
    add_context: Option<PythonResourceAddCollectionContext>
) -> Result<()>
[src]

Add a File to the resource collection.

fn filter_resources_from_files(
    &mut self,
    logger: &Logger,
    files: &[&Path],
    glob_patterns: &[&str]
) -> Result<()>
[src]

Filter embedded resources against names in files. Read more

fn requires_jemalloc(&self) -> bool[src]

Whether the binary requires the jemalloc library.

fn requires_mimalloc(&self) -> bool[src]

Whether the binary requires the Mimalloc library.

fn requires_snmalloc(&self) -> bool[src]

Whether the binary requires the Snmalloc library.

fn to_embedded_python_context(
    &self,
    logger: &Logger,
    opt_level: &str
) -> Result<EmbeddedPythonContext<'_>>
[src]

Obtain an EmbeddedPythonContext instance from this one.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V