[−][src]Struct pyo3_pack::Target
The part of the current platform that is relevant when building wheels and is supported
Methods
impl Target[src]
pub fn current() -> Self[src]
Returns the target pyo3-pack was compiled for
pub fn from_target_triple(target_triple: Option<String>) -> Result<Self, Error>[src]
Uses the given target triple or tries the guess the current target by using the one used for compilation
Fails if the target triple isn't supported
pub fn pointer_width(&self) -> usize[src]
Returns whether the platform is 64 bit or 32 bit
pub fn is_unix(&self) -> bool[src]
Returns true if the current platform is linux or mac os
pub fn is_linux(&self) -> bool[src]
Returns true if the current platform is linux
pub fn is_macos(&self) -> bool[src]
Returns true if the current platform is mac os
pub fn is_windows(&self) -> bool[src]
Returns true if the current platform is windows
pub fn get_platform_tag(&self, manylinux: &Manylinux) -> &'static str[src]
Returns the platform part of the tag for the wheel name for cffi wheels
pub fn get_py2_and_py3_tags(&self, manylinux: &Manylinux) -> Vec<String>[src]
Returns the tags for the WHEEL file for cffi wheels
pub fn get_shared_platform_tag(&self) -> &'static str[src]
Returns the platform for the tag in the shared libaries file name
pub fn get_venv_python(
&self,
venv_base: impl AsRef<Path>
) -> PathBuf[src]
&self,
venv_base: impl AsRef<Path>
) -> PathBuf
Returns the path to the python executable inside a venv
pub fn get_venv_bin_dir(
&self,
venv_base: impl AsRef<Path>
) -> PathBuf[src]
&self,
venv_base: impl AsRef<Path>
) -> PathBuf
Returns the directory where the binaries are stored inside a venv
pub fn get_python(&self) -> PathBuf[src]
Returns the path to the python executable
For windows it's always python.exe for unix it's 1. venv's python 2. python3
Trait Implementations
impl Clone for Target[src]
fn clone(&self) -> Target[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Target[src]
impl PartialEq<Target> for Target[src]
impl Debug for Target[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,