Skip to content

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

Debian: https://salsa.debian.org/cpython-team/python3/-/blob/3.10.4-4/debian/patches/sysconfig-debian-schemes.diff

If in the future we need to work around this, there are two ways:

  1. Change the default sysconfig scheme on Debian from posix_prefix to deb_system and on Fedora from posix_local to posix_prefix (and find a way to run setup.py install in-process), or
  2. Set RPM_BUILD_ROOT=1 on Fedora and DEB_PYTHON_INSTALL_LAYOUT=deb_system on Debian and pray that it doesn't break anything else.

Merge request reports