Install API¶
Warning
This feature is experimental and subject to breaking changes. See the Conan stability section for more information.
Warning
Subapis must not be initialized by themselves. They are intended to be accessed only through the main ConanAPI attributes.
- class InstallAPI(conan_api, helpers)¶
- install_binaries(deps_graph, remotes=None, return_install_error=False)¶
Install binaries for dependency graph :param deps_graph: Dependency graph to intall packages for :param remotes: :param return_install_error: If True, do not raise an exception, but return it
- install_system_requires(graph, only_info=False)¶
Install binaries for dependency graph :param only_info: Only allow reporting and checking, but never install :param graph: Dependency graph to intall packages for
- install_sources(graph, remotes)¶
Install sources for dependency graph of packages to BUILD or packages that match tools.build:download_source conf :param remotes: :param graph: Dependency graph to install packages for
- install_consumer(deps_graph, generators=None, source_folder=None, output_folder=None, deploy=False, deploy_package=None, deploy_folder=None, envs_generation=None)¶
Once a dependency graph has been installed, there are things to be done, like invoking generators for the root consumer. This is necessary for example for conanfile.txt/py, or for “conan install <ref> -g