Skip to content

Commit

Permalink
Ignore additional easyinstall/setup.py deprecation warnings
Browse files Browse the repository at this point in the history
When using the colcon `--symlink-install` flag (as we usually do),
one gets shown the following huge warning for every Python-package:

```
/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 pypa/setuptools#917 for details.
        ********************************************************************************

!!
  easy_install.initialize_options(self)
---
```

Has been solved by: ros2/ros2#1577 (comment)
  • Loading branch information
jaagut committed Jan 4, 2025
1 parent fe27412 commit 67423dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export PROMPT="%K{black} 🐋 %K{blue}%F{black} %~ %f%k%F{blue}%f " # Pre
# >>> bit-bots initialize >>>

# Ignore some deprecation warnings
export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources
export PYTHONWARNINGS="ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources,ignore:easy_install command is deprecated,ignore:setup.py install is deprecated"

# Limit ROS 2 communication to localhost (can be overridden when needed)
export ROS_DOMAIN_ID=24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ In case you are not using the bash shell, replace ``~/.bashrc`` and ``bash`` wit
# >>> bit-bots initialize >>>
# Ignore some deprecation warnings
export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources
export PYTHONWARNINGS="ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources,ignore:easy_install command is deprecated,ignore:setup.py install is deprecated"
# Limit ROS 2 communication to localhost (can be overridden when needed)
export ROS_DOMAIN_ID=24
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SHELL_CONFIG="$(cat <<EOF
# >>> bit-bots initialize >>>
# Ignore some deprecation warnings
export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources
export PYTHONWARNINGS="ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources,ignore:easy_install command is deprecated,ignore:setup.py install is deprecated"
# Limit ROS 2 communication to localhost (can be overridden when needed)
export ROS_DOMAIN_ID=24
Expand Down

0 comments on commit 67423dc

Please sign in to comment.