Function resolve_python_distribution_archive

Source
pub fn resolve_python_distribution_archive(
    dist: &PythonDistributionLocation,
    cache_dir: &Path,
) -> Result<PathBuf>
Expand description

Obtain a local Path for a Python distribution tar archive.

Takes a parsed config and a cache directory as input. Usually the cache directory is the OUT_DIR for the invocation of a Cargo build script. A Python distribution will be fetched according to the configuration and a copy of the archive placed in cache_dir. If the archive already exists in cache_dir, it will be verified and returned.

Local filesystem paths are preferred over remote URLs if both are defined.