Skip to content

Can't build meta-chromium with python3.13 #875

@jcalvinowens

Description

@jcalvinowens

This happens because the disttools module is no more, see https://peps.python.org/pep-0632/

DEBUG: Executing python function do_check_llvm_version
ERROR: Error executing a python function in exec_func_python() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_check_llvm_version(d)
     0003:
File: '/home/calvinow/git/meta-roosevelt/build/../meta-browser/meta-chromium/recipes-browser/chromium/chromium-gn.inc', lineno: 400, function: do_check_llvm_version
     0396:# Check the LLVMVERSION defined in the meta-clang layer. Given Chromium is
     0397:# developed using new C++ features, the LLVMVERSION has to be >= 14. Otherwise,
     0398:# it is not guaranteed that Chromium will compile.
     0399:python do_check_llvm_version () {
 *** 0400:  from distutils.version import LooseVersion
     0401:
     0402:  min_llvm_version = "14.0.0"
     0403:  llvm_version = d.getVar('LLVMVERSION', False)
     0404:  if not llvm_version:
Exception: ModuleNotFoundError: No module named 'distutils'

DEBUG: Python function do_check_llvm_version finished

I haven't had time to spin a PR to fix this yet, but will soon if somebody doesn't beat me to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions