Struct pyoxidizerlib::starlark::python_executable::PythonExecutableValue [−][src]
pub struct PythonExecutableValue { pub exe: Box<dyn PythonBinaryBuilder>, // some fields omitted }
Represents a builder for a Python executable.
Fields
exe: Box<dyn PythonBinaryBuilder>
Implementations
impl PythonExecutableValue
[src]
impl PythonExecutableValue
[src]pub fn new(
exe: Box<dyn PythonBinaryBuilder>,
policy: PythonPackagingPolicyValue
) -> Self
[src]
exe: Box<dyn PythonBinaryBuilder>,
policy: PythonPackagingPolicyValue
) -> Self
pub fn python_packaging_policy(&self) -> PythonPackagingPolicyValue
[src]
pub fn python_packaging_policy(&self) -> PythonPackagingPolicyValue
[src]Obtains a copy of the PythonPackagingPolicyValue
stored internally.
pub fn build_internal(
&self,
type_values: &TypeValues,
target: &str,
context: &PyOxidizerEnvironmentContext
) -> Result<(ResolvedTarget, PathBuf)>
[src]
&self,
type_values: &TypeValues,
target: &str,
context: &PyOxidizerEnvironmentContext
) -> Result<(ResolvedTarget, PathBuf)>
impl PythonExecutableValue
[src]
impl PythonExecutableValue
[src]pub fn make_python_module_source(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
name: String,
source: String,
is_package: bool
) -> ValueResult
[src]
pub fn make_python_module_source(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
name: String,
source: String,
is_package: bool
) -> ValueResult
[src]PythonExecutable.make_python_module_source(name, source, is_package=false)
pub fn pip_download(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
args: &Value
) -> ValueResult
[src]
pub fn pip_download(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
args: &Value
) -> ValueResult
[src]PythonExecutable.pip_download(args)
pub fn pip_install(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
args: &Value,
extra_envs: &Value
) -> ValueResult
[src]
pub fn pip_install(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
args: &Value,
extra_envs: &Value
) -> ValueResult
[src]PythonExecutable.pip_install(args, extra_envs=None)
pub fn read_package_root(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
path: String,
packages: &Value
) -> ValueResult
[src]
pub fn read_package_root(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
path: String,
packages: &Value
) -> ValueResult
[src]PythonExecutable.read_package_root(path, packages)
pub fn read_virtualenv(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
path: String
) -> ValueResult
[src]
pub fn read_virtualenv(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
path: String
) -> ValueResult
[src]PythonExecutable.read_virtualenv(path)
pub fn setup_py_install(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
package_path: String,
extra_envs: &Value,
extra_global_arguments: &Value
) -> ValueResult
[src]
pub fn setup_py_install(
&mut self,
type_values: &TypeValues,
call_stack: &mut CallStack,
package_path: String,
extra_envs: &Value,
extra_global_arguments: &Value
) -> ValueResult
[src]PythonExecutable.setup_py_install(package_path, extra_envs=None, extra_global_arguments=None)
pub fn add_python_module_source(
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
module: &PythonModuleSourceValue
) -> ValueResult
[src]
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
module: &PythonModuleSourceValue
) -> ValueResult
pub fn add_python_package_resource(
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
resource: &PythonPackageResourceValue
) -> ValueResult
[src]
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
resource: &PythonPackageResourceValue
) -> ValueResult
pub fn add_python_package_distribution_resource(
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
resource: &PythonPackageDistributionResourceValue
) -> ValueResult
[src]
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
resource: &PythonPackageDistributionResourceValue
) -> ValueResult
pub fn add_python_extension_module(
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
module: &PythonExtensionModuleValue
) -> ValueResult
[src]
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
module: &PythonExtensionModuleValue
) -> ValueResult
pub fn add_file_data(
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
file: &FileValue
) -> ValueResult
[src]
&mut self,
context: &PyOxidizerEnvironmentContext,
label: &str,
file: &FileValue
) -> ValueResult
pub fn add_python_resource(
&mut self,
type_values: &TypeValues,
resource: &Value,
label: &str
) -> ValueResult
[src]
pub fn add_python_resource(
&mut self,
type_values: &TypeValues,
resource: &Value,
label: &str
) -> ValueResult
[src]PythonExecutable.add_python_resource(resource)
pub fn add_python_resources(
&mut self,
type_values: &TypeValues,
resources: &Value
) -> ValueResult
[src]
pub fn add_python_resources(
&mut self,
type_values: &TypeValues,
resources: &Value
) -> ValueResult
[src]PythonExecutable.add_python_resources(resources)
pub fn to_embedded_resources(&self) -> ValueResult
[src]
pub fn to_embedded_resources(&self) -> ValueResult
[src]PythonExecutable.to_embedded_resources()
pub fn to_file_manifest(
&self,
type_values: &TypeValues,
prefix: String
) -> ValueResult
[src]
pub fn to_file_manifest(
&self,
type_values: &TypeValues,
prefix: String
) -> ValueResult
[src]PythonExecutable.to_file_manifest(prefix)
pub fn to_wix_bundle_builder(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
id_prefix: String,
product_name: String,
product_version: String,
product_manufacturer: String,
msi_builder_callback: Value
) -> ValueResult
[src]
pub fn to_wix_bundle_builder(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
id_prefix: String,
product_name: String,
product_version: String,
product_manufacturer: String,
msi_builder_callback: Value
) -> ValueResult
[src]PythonExecutable.to_wix_bundle_builder(id_prefix, name, version, manufacturer, msi_builder_callback)
pub fn to_wix_msi_builder(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
id_prefix: String,
product_name: String,
product_version: String,
product_manufacturer: String
) -> ValueResult
[src]
pub fn to_wix_msi_builder(
&self,
type_values: &TypeValues,
call_stack: &mut CallStack,
id_prefix: String,
product_name: String,
product_version: String,
product_manufacturer: String
) -> ValueResult
[src]PythonExecutable.to_wix_msi_builder(id_prefix, product_name, product_version, product_manufacturer)
pub fn filter_resources_from_files(
&mut self,
type_values: &TypeValues,
files: &Value,
glob_files: &Value
) -> ValueResult
[src]
pub fn filter_resources_from_files(
&mut self,
type_values: &TypeValues,
files: &Value,
glob_files: &Value
) -> ValueResult
[src]PythonExecutable.filter_resources_from_files(files=None, glob_files=None)
Trait Implementations
impl TypedValue for PythonExecutableValue
[src]
impl TypedValue for PythonExecutableValue
[src]type Holder = Mutable<PythonExecutableValue>
type Holder = Mutable<PythonExecutableValue>
Must be either MutableHolder<Self>
or ImmutableHolder<Self>
const TYPE: &'static str
[src]
const TYPE: &'static str
[src]Return a string describing the type of self, as returned by the type() function.
fn values_for_descendant_check_and_freeze<'a>(
&'a self
) -> Box<dyn Iterator<Item = Value> + 'a>
[src]
fn values_for_descendant_check_and_freeze<'a>(
&'a self
) -> Box<dyn Iterator<Item = Value> + 'a>
[src]Return a list of values to be used in freeze or descendant check operations. Read more
fn get_attr(&self, attribute: &str) -> ValueResult
[src]
fn get_attr(&self, attribute: &str) -> ValueResult
[src]Get an attribute for the current value as would be returned by dotted expression (i.e.
a.attribute
). Read more
fn has_attr(&self, attribute: &str) -> Result<bool, ValueError>
[src]
fn has_attr(&self, attribute: &str) -> Result<bool, ValueError>
[src]Return true if an attribute of name attribute
exists for the current value. Read more
fn set_attr(&mut self, attribute: &str, value: Value) -> Result<(), ValueError>
[src]
fn set_attr(&mut self, attribute: &str, value: Value) -> Result<(), ValueError>
[src]Set the attribute named attribute
of the current value to new_value
(e.g.
a.attribute = new_value
). Read more
fn function_id(&self) -> Option<FunctionId>
[src]
fn function_id(&self) -> Option<FunctionId>
[src]Return function id to detect recursion. Read more
fn to_str(&self) -> String
[src]
fn to_str(&self) -> String
[src]Return a string describing of self, as returned by the str() function.
fn to_str_impl(&self, buf: &mut String) -> Result<(), Error>
[src]
fn to_str_impl(&self, buf: &mut String) -> Result<(), Error>
[src]The implementation of to_str
, more efficient for nested objects
fn to_repr(&self) -> String
[src]
fn to_repr(&self) -> String
[src]Return a string representation of self, as returned by the repr() function.
fn to_repr_impl(&self, buf: &mut String) -> Result<(), Error>
[src]
fn to_repr_impl(&self, buf: &mut String) -> Result<(), Error>
[src]The implementation of to_repr
, more efficient for nested objects
fn to_bool(&self) -> bool
[src]
fn to_bool(&self) -> bool
[src]Convert self to a Boolean truth value, as returned by the bool() function.
fn to_int(&self) -> Result<i64, ValueError>
[src]
fn to_int(&self) -> Result<i64, ValueError>
[src]Convert self to a integer value, as returned by the int() function if the type is numeric (not for string). Read more
fn get_hash(&self) -> Result<u64, ValueError>
[src]
fn get_hash(&self) -> Result<u64, ValueError>
[src]Return a hash code for self, as returned by the hash() function, or OperationNotSupported if there is no hash for this value (e.g. list). Read more
fn equals(&self, other: &Self) -> Result<bool, ValueError>
[src]
fn equals(&self, other: &Self) -> Result<bool, ValueError>
[src]Compare self
with other
for equality. Read more
fn compare(&self, _other: &Self) -> Result<Ordering, ValueError>
[src]
fn compare(&self, _other: &Self) -> Result<Ordering, ValueError>
[src]Compare self
with other
. Read more
fn call(
&self,
_call_stack: &mut CallStack,
_type_values: &TypeValues,
_positional: Vec<Value, Global>,
_named: LinkedHashMap<RcString, Value, RandomState>,
_args: Option<Value>,
_kwargs: Option<Value>
) -> Result<Value, ValueError>
[src]
fn call(
&self,
_call_stack: &mut CallStack,
_type_values: &TypeValues,
_positional: Vec<Value, Global>,
_named: LinkedHashMap<RcString, Value, RandomState>,
_args: Option<Value>,
_kwargs: Option<Value>
) -> Result<Value, ValueError>
[src]Perform a call on the object, only meaningfull for function object. Read more
fn at(&self, index: Value) -> Result<Value, ValueError>
[src]
fn at(&self, index: Value) -> Result<Value, ValueError>
[src]Perform an array or dictionary indirection. Read more
fn set_at(&mut self, index: Value, _new_value: Value) -> Result<(), ValueError>
[src]
fn set_at(&mut self, index: Value, _new_value: Value) -> Result<(), ValueError>
[src]Set the value at index
with new_value
. Read more
fn slice(
&self,
_start: Option<Value>,
_stop: Option<Value>,
_stride: Option<Value>
) -> Result<Value, ValueError>
[src]
fn slice(
&self,
_start: Option<Value>,
_stop: Option<Value>,
_stride: Option<Value>
) -> Result<Value, ValueError>
[src]Extract a slice of the underlying object if the object is indexable. The result will be
object between start
and stop
(both of them are added length() if negative and then
clamped between 0 and length()). stride
indicates the direction. Read more
fn iter(&self) -> Result<&(dyn TypedIterable + 'static), ValueError>
[src]
fn iter(&self) -> Result<&(dyn TypedIterable + 'static), ValueError>
[src]Returns an iterable over the value of this container if this value hold an iterable container. Read more
fn length(&self) -> Result<i64, ValueError>
[src]
fn length(&self) -> Result<i64, ValueError>
[src]Returns the length of the value, if this value is a sequence.
fn dir_attr(&self) -> Result<Vec<RcString, Global>, ValueError>
[src]
fn dir_attr(&self) -> Result<Vec<RcString, Global>, ValueError>
[src]Return a vector of string listing all attribute of the current value, excluding native methods. Read more
fn contains(&self, other: &Value) -> Result<bool, ValueError>
[src]
fn contains(&self, other: &Value) -> Result<bool, ValueError>
[src]Tell wether other
is in the current value, if it is a container. Read more
fn plus(&self) -> Result<Self, ValueError>
[src]
fn plus(&self) -> Result<Self, ValueError>
[src]Apply the +
unary operator to the current value. Read more
fn minus(&self) -> Result<Self, ValueError>
[src]
fn minus(&self) -> Result<Self, ValueError>
[src]Apply the -
unary operator to the current value. Read more
fn add(&self, _other: &Self) -> Result<Self, ValueError>
[src]
fn add(&self, _other: &Self) -> Result<Self, ValueError>
[src]Add other
to the current value. Read more
fn sub(&self, _other: &Self) -> Result<Self, ValueError>
[src]
fn sub(&self, _other: &Self) -> Result<Self, ValueError>
[src]Substract other
from the current value. Read more
fn mul(&self, other: Value) -> Result<Value, ValueError>
[src]
fn mul(&self, other: Value) -> Result<Value, ValueError>
[src]Multiply the current value with other
. Read more
fn percent(&self, other: Value) -> Result<Value, ValueError>
[src]
fn percent(&self, other: Value) -> Result<Value, ValueError>
[src]Apply the percent operator between the current value and other
. Read more
fn div(&self, other: Value) -> Result<Value, ValueError>
[src]
fn div(&self, other: Value) -> Result<Value, ValueError>
[src]Divide the current value with other
. division. Read more
Auto Trait Implementations
impl !RefUnwindSafe for PythonExecutableValue
impl !Send for PythonExecutableValue
impl !Sync for PythonExecutableValue
impl Unpin for PythonExecutableValue
impl !UnwindSafe for PythonExecutableValue
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,