diff options
| author | Eli Schwartz <eschwartz@gentoo.org> | 2025-04-16 15:45:09 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@gentoo.org> | 2025-04-17 13:22:14 -0400 |
| commit | 0a2ed735524c09ba687e6abf6134d7f683e03bf7 (patch) | |
| tree | 46167ca82d07be376a8d65d3c66154b1367a7b51 /llvm-core/llvm/llvm-15.0.7-r7.ebuild | |
| parent | c06bc57603d79b8bedf406d7dca53ba1a2794ceb (diff) | |
| download | gentoo-0a2ed735524c09ba687e6abf6134d7f683e03bf7.tar.gz gentoo-0a2ed735524c09ba687e6abf6134d7f683e03bf7.tar.bz2 gentoo-0a2ed735524c09ba687e6abf6134d7f683e03bf7.zip | |
llvm-core/llvm: enable py3.13 for old versions
Python is currently only used for two things in llvm:15, and that is:
- Test-time use of llvm-lit, see corresponding change to dev-python/lit
for why it is safe to enable py3.13.
Note that llvm-lit loads cfg files which are python scripts used by the
test. Some unmaintained code removed in llvm:16 uses a python module
removed in 3.13, but we never built it to begin with so the easiest
fix is to remove it entirely so that llvm-lit does not try to load it
and fail with ModuleNotFoundError.
- USE=docs. We could drop docs from ancient slots, but it is just
sphinx with a trivial conf.py and it does work, so we might as well
allow it.
Acked-by: Sam James <sam@gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'llvm-core/llvm/llvm-15.0.7-r7.ebuild')
| -rw-r--r-- | llvm-core/llvm/llvm-15.0.7-r7.ebuild | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm-core/llvm/llvm-15.0.7-r7.ebuild b/llvm-core/llvm/llvm-15.0.7-r7.ebuild index e6f08b13f041..61161d1dc79d 100644 --- a/llvm-core/llvm/llvm-15.0.7-r7.ebuild +++ b/llvm-core/llvm/llvm-15.0.7-r7.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit cmake flag-o-matic llvm.org multilib-minimal pax-utils python-any-r1 \ toolchain-funcs @@ -180,6 +180,12 @@ src_prepare() { check_uptodate llvm.org_src_prepare + + # unmaintained, python <3.13 removed modules in the test cfg. We don't + # build them anyway, so no need to run the test in order to report + # "skipped". And llvm 16 removes this from the source anyway. + rm -r test/Bindings/Go/ || die + } get_distribution_components() { |
