Expand description
Find requested Python interpreters and query interpreters for information.
Re-exports§
pub use crate::downloads::PlatformRequest;
Modules§
Structs§
- Broken
Symlink - Interpreter
- A Python executable and its associated platform markers.
- Prefix
- A
--prefixdirectory into which packages can be installed, separate from a virtual environment or system Python interpreter. - PyVenv
Configuration - A parsed
pyvenv.cfg - Python
Environment - A Python environment, consisting of a Python
Interpreterand its associated paths. - Python
Installation - A Python interpreter and accompanying tools.
- Python
Installation Key - Python
Installation Minor Version Key - A view into a
PythonInstallationKeythat excludes the patch and prerelease versions. - Python
NotFound - The result of failed Python installation discovery.
- Python
Version - Python
Version File - A
.python-versionor.python-versionsfile. - Target
- A
--targetdirectory into which packages can be installed, separate from a virtual environment or system Python interpreter. - Version
File Discovery Options - Virtual
Environment - The layout of a virtual environment.
Enums§
- Build
Version Error - Discovery
Error - Environment
Preference - Error
- Implementation
Name - Interpreter
Error - Invalid
Environment Kind - Lenient
Implementation Name - Pointer
Size - Python
Downloads - Python
Preference - Python
Request - A request to find a Python installation.
- Python
Source - A location for discovery of a Python installation or interpreter.
- Python
Variant - Version
File Preference - Whether to prefer the
.python-versionor.python-versionsfile. - Version
Request - A Python discovery version request.
- Virtual
EnvError
Statics§
- PYTHON_
VERSIONS_ FILENAME - The file name for multiple Python version declarations.
- PYTHON_
VERSION_ FILENAME - The file name for Python version pins.
Functions§
- canonicalize_
executable - Calls
fs_err::canonicalizeon Unix. On Windows, avoids attempting to resolve symlinks but will resolve junctions if they are part of a trampoline target. - find_
python_ installations - Iterate over all Python installations that satisfy the given request.
- satisfies_
python_ preference - Returns true if a Python interpreter matches the
PythonPreference.