Bug 481880 - KDE-Builder should correctly handle python virtual environments it depend on
Summary: KDE-Builder should correctly handle python virtual environments it depend on
Status: RESOLVED FIXED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-27 03:25 UTC by fanzhuyifan
Modified: 2024-03-01 14:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.