Allow optionally overriding the PYTHON_INSTALL_DIR variable instead of relying 
solely on the value of Python3_SITEARCH. This is useful for cross-compilation 
scenarios as of Python 3.14 (which has stricter sysconfig settings), e.g. with 
Yocto builds, where Python files get installed to native instead of target 
paths. In such cases the FindPython3 function may find the native version and 
use those sysconfig values, which is incorrect.

If PYTHON_INSTALL_DIR is not set, we continue using the computed value of 
Python3_SITEARCH.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/4072

-- Commit Summary --

  * python/CMakeLists.txt: allow overriding Python install dir

-- File Changes --

    M python/CMakeLists.txt (8)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4072.patch
https://github.com/rpm-software-management/rpm/pull/4072.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4072
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/[email protected]>
_______________________________________________
Rpm-maint mailing list
[email protected]
https://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to