ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A

Ament build for python packages with dependencies

Hi all, I am building a python package that depends on a pypi package. I include the name of the pypi package in the “install_requires” list in the file. If I build the package with “python3 install” the dependency is built as well and everything runs well. If instead I build with “ament build” then the package builds without errors but the dependency is not actually included. I guess I had assumed that ament build essentially did a “python3 install” under the hood, but would also somehow manage to put those dependencies in the site-packages in the install folder as well. I am on beta 3. Thanks for all you do!

ament_tools does not install any dependencies (see In ROS we use rosdep for that task.