Expand description
Utilities for finding the site-packages directory,
into which third-party packages are installed.
The routines exposed by this module have different behaviour depending on the platform of the host machine, which may be different from the target platform for type checking. (A user might be running ty on a Windows machine, but might reasonably ask us to type-check code assuming that the code runs on Linux.)
Structs§
- Python
Version File Source - Information regarding the file and
TextRangeof the configuration from which we inferred the Python version. - Python
Version With Source - A Python version with its source.
- Site
Packages Paths - An ordered, deduplicated set of
site-packagessearch paths. - SysPrefix
Path - A path that represents the value of
sys.prefixat runtime in Python for a given Python executable. - System
Environment - A Python environment that is not a virtual environment.
- Virtual
Environment - Abstraction for a Python virtual environment.
Enums§
- Python
Environment - Python
Version Source - The source of the Python version.
- Pyvenv
CfgParse Error Kind - The various ways in which parsing a
pyvenv.cfgfile could fail - Site
Packages Discovery Error - Enumeration of ways in which
site-packagesdiscovery can fail. - Stdlib
Discovery Error - Enumeration of ways in which stdlib discovery can fail.
- SysPrefix
Path Origin - Enumeration of sources a
sys.prefixpath can come from.