[][src]Function pyoxidizerlib::pyrepackager::dist::resolve_python_distribution_archive

pub fn resolve_python_distribution_archive(
    config: &Config,
    cache_dir: &Path
) -> PathBuf

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.