Bug 481880

Summary: KDE-Builder should correctly handle python virtual environments it depend on
Product: [Developer tools] kdesrc-build Reporter: fanzhuyifan
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED FIXED    
Severity: wishlist CC: ashark
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description fanzhuyifan 2024-02-27 03:25:23 UTC
kde-builder, the replacement for kdesrc-build, depends on python 3.12. Since many distros still do not ship python 3.12 yet, users on these distros need to rely on virtual environments (e.g., see instruction in README).

However, these virtual environments cause conflicts when building packages that depend on python. In particular, the build system (cmake), will try to look for the python dependencies inside the virtual environment.

The current solution is to require the following CMAKE options to be added: "-DPython3_FIND_VIRTUALENV=STANDARD -DPython3_FIND_UNVERSIONED_NAMES=FIRST" to facilitate building these projects. However, this is not ideal since the builder should accommodate the projects it is building, instead of the other way round, forcing projects to accomodate the builder. In addition, adding this CMAKE option globally makes it impossible for build systems to depend on custom virtual environments during build.

The builder should have proper support of virtual environments, or be compatible with older python versions that are available on all popular distros.
Comment 1 Bug Janitor Service 2024-02-27 05:33:27 UTC
A possibly relevant merge request was started @ https://invent.kde.org/sdk/kde-builder/-/merge_requests/12
Comment 2 Andrew Shark 2024-03-01 14:33:37 UTC
Project now supports lower python version.