Function pyoxidizerlib::py_packaging::packaging_tool::pip_download[][src]

pub fn pip_download<'a>(
    logger: &Logger,
    host_dist: &dyn PythonDistribution,
    taget_dist: &dyn PythonDistribution,
    policy: &PythonPackagingPolicy,
    verbose: bool,
    args: &[String]
) -> Result<Vec<PythonResource<'a>>>

Run pip download and collect resources found from downloaded packages.

host_dist is the Python distribution to use to run pip.

build_dist is the Python distribution that packages are being downloaded for.

The distributions are often the same. But passing a different distribution targeting a different platform allows this command to resolve resources for a non-native platform, which enables it to be used when cross-compiling.