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]
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]
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>>
Trait Implementations
impl Clone for StandalonePythonExecutableBuilder
[src]
impl Clone for StandalonePythonExecutableBuilder
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl PythonBinaryBuilder for StandalonePythonExecutableBuilder
[src]
impl PythonBinaryBuilder for StandalonePythonExecutableBuilder
[src]fn clone_trait(&self) -> Arc<dyn PythonBinaryBuilder>
[src]
fn clone_trait(&self) -> Arc<dyn PythonBinaryBuilder>
[src]Clone self into a Box’ed trait object.
fn libpython_link_mode(&self) -> LibpythonLinkMode
[src]
fn libpython_link_mode(&self) -> LibpythonLinkMode
[src]How the binary will link against libpython.
fn target_triple(&self) -> &str
[src]
fn target_triple(&self) -> &str
[src]Rust target triple the binary will run on.
fn vc_runtime_requirements(&self) -> Option<(String, VcRedistributablePlatform)>
[src]
fn vc_runtime_requirements(&self) -> Option<(String, VcRedistributablePlatform)>
[src]Obtain run-time requirements for the Visual C++ Redistributable. Read more
fn python_packaging_policy(&self) -> &PythonPackagingPolicy
[src]
fn python_packaging_policy(&self) -> &PythonPackagingPolicy
[src]Obtain the PythonPackagingPolicy
for the builder.
fn host_python_exe_path(&self) -> &Path
[src]
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]
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]
fn apple_sdk_info(&self) -> Option<&AppleSdkInfo>
[src]Apple SDK build/targeting information.
fn windows_runtime_dlls_mode(&self) -> &WindowsRuntimeDllsMode
[src]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
fn requires_jemalloc(&self) -> bool
[src]Whether the binary requires the jemalloc library.
fn requires_mimalloc(&self) -> bool
[src]
fn requires_mimalloc(&self) -> bool
[src]Whether the binary requires the Mimalloc library.
fn requires_snmalloc(&self) -> bool
[src]
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]
fn to_embedded_python_context(
&self,
logger: &Logger,
opt_level: &str
) -> Result<EmbeddedPythonContext<'_>>
[src]Obtain an EmbeddedPythonContext
instance from this one.
Auto Trait Implementations
impl !RefUnwindSafe for StandalonePythonExecutableBuilder
impl !Send for StandalonePythonExecutableBuilder
impl !Sync for StandalonePythonExecutableBuilder
impl Unpin for StandalonePythonExecutableBuilder
impl !UnwindSafe for StandalonePythonExecutableBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[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]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,