SetuptoolsDeprecationWarning: setup.py install is deprecated
I'm trying to update the MacPorts port to 6.3.1 but am hitting a problem that the build command is now deprecated:
Executing: cd "/opt/local/var/macports/build/_Users_charlieclark_temp_macports-ports_devel_tortoisehg/tortoisehg/work/thg-6.3.1" && /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 setup.py --no-user-cfg build -j1
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn()
I'm not that sure where I should be digging in order to patch this. I could use a different Python version but if this is down to setuptools then the error is likely to persist.