You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use parts of a python package that require the EXTRAS dependencies, and want to specify in my package.xml that I depend on the extras of my dependency.
Example
Pip's networkx has marked an extra dependency on scipy. Because my package uses the kamada-kawai layout feature of networkx, I need to ensure rosdep installs the extra dependencies of networkx such as scipy.
Current dependency in my package.xml, where I must include transitive optional dependencies of python3-networkx
The rosdep key python3-networkx resolves to the command apt install python3-networkx and the rosdep key python3-networkx[extra] resolves to apt install --install-suggests python3-networkx
$ apt info python3-networkx | grep "Depends\|Recommends\|Suggests"
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Depends: python3-pkg-resources, python3-decorator (>= 4.3.0), python3:any
Recommends: python3-numpy (>= 1.15.4), python3-yaml
Suggests: python-networkx-doc, python3-gdal, python3-matplotlib, python3-pydot, python3-pygraphviz, python3-scipy
Use Case
I use parts of a python package that require the EXTRAS dependencies, and want to specify in my package.xml that I depend on the extras of my dependency.
Example
Pip's networkx has marked an extra dependency on scipy. Because my package uses the
kamada-kawai layout
feature of networkx, I need to ensure rosdep installs the extra dependencies ofnetworkx
such asscipy
.Current dependency in my package.xml, where I must include transitive optional dependencies of
python3-networkx
Desired:
Possible Solution
The rosdep key
python3-networkx
resolves to the commandapt install python3-networkx
and the rosdep keypython3-networkx[extra]
resolves toapt install --install-suggests python3-networkx
References
https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies
Originally posted by @Ryanf55 in ros2/ros_network_viz#26 (comment)
The text was updated successfully, but these errors were encountered: