mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 10:17:08 -08:00
PkgCore's setup.py originally embedded the actual install prefix into _const.py when `setup.py install` was used. However, as we switched to PEP517 builds, it started installing a generic variant that uses sys.prefix instead. This breaks using PkgCore from inside a venv with `--system-site-packages` option, as the system copy of PkgCore tries to find its config files inside the venv. Hardcode the correct path from the ebuild to avoid this. Courtesy of Arthur Zamarin. Signed-off-by: Michał Górny <mgorny@gentoo.org>