catkin_tools
catkin_tools copied to clipboard
[noetic, arch linux] Warnings: Distutils was imported before Setuptools
System Info
- Operating System: Linux XXX 5.8.0-arch1-2 #1 SMP PREEMPT Sun, 09 Aug 2020 00:57:20 +0000 x86_64 GNU/Linux
- Python Version: Python 3.8.5
- Version of catkin_tools: catkin_tools 0.5.0
- ROS Distro: noetic
- Version of setuptools: 49.2.1
Build / Run Issue
As suggested here I switched to setuptools for installing my python modules. Building the workspace from scratch results in warnings like this:
/usr/lib/python3.8/site-packages/setuptools/distutils_patch.py:25: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.
Maybe these warnings stem from a more up-to-date setuptools version (<-- arch linux). Anyway it seems that dependencies on distutils should be removed in the long run.
I think this issue is deprecated as it is related to catkin_tools 0.5.0