How do I include the Python "packaging" library on build farm?
Hello!
I'm confused how to properly include a requirement for the Python packaging
library into my package.
As far as I understand, that library is called python-packaging
in ROS, so I added it to my package.xml
.
On my local system, it builds and runs without problems, but on the build farm, it fails with
05:55:04 Traceback (most recent call last):
05:55:04 File "/tmp/ws/install_isolated/ament_virtualenv/lib/python3.6/site-packages/ament_virtualenv/combine_requirements.py", line 30, in <module>
05:55:04 from packaging.requirements import Requirement, InvalidRequirement
05:55:04 ModuleNotFoundError: No module named 'packaging'
and
05:55:05 [1.060s] File "/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py", line 786, in resolve
05:55:05 [1.061s] raise DistributionNotFound(req, requirers)
05:55:05 [1.061s] pkg_resources.DistributionNotFound: The 'packaging' distribution was not found and is required by ament-virtualenv
I've tried all forms of dependencies (build_depend
, buildtool_depend
, exec_depend
, ...), and tried adding either packaging
or python-packaging
to the install_requires
section in setup.py
/ setup.cgf
.
Can someone please let me know the proper way to include packaging
(the Python library) so that it'll build on the build farm as well?
Here is the build farm log for reference: http://build.ros2.org/job/Cdev__ament...
and the source code repository: https://github.com/esol-community/ame...
Thank you!