_pip#
- rezbuild_utils._pip.install_pip_package(pip_package: str, python_version: str, target_dir: Path, pip_args: List[str] | None = None)#
Install the given pip package AND its dependencies at the given location.
Example structure of target_dir with
pip_package=PySide2
:target_dir/ PySide2/ PySide2-5.15.2.1.dist-info/ shiboken2/ shiboken2-5.15.2.1.dist-info/
- Parameters:
pip_package – pip name of the package and its version. specified like
packageName==version
.python_version – version to use for python. can be a shortened variant like
3.9
.target_dir – path to a non-existing directory.
pip_args – additional argument directly passed to pip