summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-08-16 13:16:33 +0100
committerMichał Górny <mgorny@gentoo.org>2023-08-19 20:28:13 +0200
commit54d6fdbd179f158f4b9e0e21b1b03ff1ae46f404 (patch)
treede39c8253344c4192f8b15f26da75b3ada5f2cfc /metadata/md5-cache/dev-python/testpath-0.6.0
parentdistutils-r1.eclass: append scikit-build-core to documentation. (diff)
downloadgentoo-54d6fdbd179f158f4b9e0e21b1b03ff1ae46f404.tar.gz
gentoo-54d6fdbd179f158f4b9e0e21b1b03ff1ae46f404.tar.bz2
gentoo-54d6fdbd179f158f4b9e0e21b1b03ff1ae46f404.zip
python-utils-r1.eclass: Fix PYTHON_SITEDIR/INCLUDEDIR for cross-prefix
We dynamically determine Python's SITEDIR and INCLUDEDIR using the build host's Python. This breaks down when the build host's prefix differs from the target host's prefix, so chop off the former and prepend the latter. This assumes that each Python implementation is always installed using the same scheme. Meson already makes this assumption, and gpep517 makes a similar assumption to determine Python's stdlib location. We could improve on this and determine these locations using SYSROOT's sysconfigdata file, like gpep517 does, but this seems needlessly complex. We would need to take this approach for PYTHON_LIBPATH and PYTHON_CONFIG, but these are only used by handful of packages. ${BROOT-${EPREFIX}} is needed rather than plain ${BROOT} for the same reason we need it for PYTHON, namely that Portage <3.0.50 was buggy. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'metadata/md5-cache/dev-python/testpath-0.6.0')
0 files changed, 0 insertions, 0 deletions