ros / ros_tutorials

Code used in tutorials found on ROS wiki
http://wiki.ros.org/ros_tutorials
805 stars 540 forks source link

Example Python package - setup.py deprecated #172

Open eduardo4jesus opened 3 weeks ago

eduardo4jesus commented 3 weeks ago

Is there an example of building a Python package?

I am using osrf/ros:jazzy-desktop

When building a package just created with ros2 pkg, I get this error:

$ colcon build       
/usr/lib/python3/dist-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` and ``easy_install``.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://github.com/pypa/setuptools/issues/917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)