https://bugs.kde.org/show_bug.cgi?id=481880

            Bug ID: 481880
           Summary: KDE-Builder should correctly handle python virtual
                    environments it depend on
    Classification: Developer tools
           Product: kdesrc-build
           Version: Git
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: general
          Assignee: mp...@kde.org
          Reporter: fanzhuyi...@gmail.com
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to