eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.52k stars 1.42k forks source link

python uses deprecated tools during installation #12005

Open atellyro opened 1 year ago

atellyro commented 1 year ago

During the install process (sudo make install) the following warnings show up

One example

-- Installing: /usr/local/lib/liblibtracijni.so ... running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. ... writing byte-compilation script '/tmp/tmp94v8bx8.py' /bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmp94v8bx8.py

**SUMO-version:1.15

**operating system: Ubuntu 22.10

m-kro commented 1 year ago

Used in https://github.com/eclipse/sumo/blob/abdc360cfbd10c05c30ee95d6e6904d146e8d1c7/tools/game/setup.py#L21

atellyro commented 1 year ago

The deprecated message comes 8x during the installation process The errors showed up also with ubuntu 22.04

1922:/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2015:/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmpzeahtsvk.py 2033:/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2088:/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmp_gcy9xzl.py 2146:/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2163:/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmpu5kwjq6p.py 2184:/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2199:/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmpf9bz3frh.py

install-log-2022-11-10.txt