cerbero: Also add build-tools/local/bin to PATH on Linux
Some distros have changed the default sysconfig scheme to manually add 'local' to all install dirs for setuptools. Reverting this is far too much work and will be fragile as heck, so just accept it and move on.
Fedora: https://src.fedoraproject.org/rpms/python3.10/blob/f36/f/00251-change-user-install-location.patch
If in the future we need to work around this, there are two ways:
- Change the default
sysconfig
scheme on Debian fromposix_prefix
todeb_system
and on Fedora fromposix_local
toposix_prefix
(and find a way to runsetup.py install
in-process), or - Set
RPM_BUILD_ROOT=1
on Fedora andDEB_PYTHON_INSTALL_LAYOUT=deb_system
on Debian and pray that it doesn't break anything else.