[Rpm-maint] [rpm-software-management/rpm] python/CMakeLists.txt: allow overriding Python install dir (PR #4072)

Trevor Gamblin notifications at github.com
Fri Dec 12 17:09:58 UTC 2025


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/4072 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251212/02001273/attachment.htm>


More information about the Rpm-maint mailing list