Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages / 
python-triton


Commits:
5364eecb by Torsten Keßler at 2025-12-29T17:47:33+01:00
upgpkg: 3.5.1-3 fix python 3.14 version

Switch to git sources to cherry-pick a fix for the ast module in Python 3.14

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-triton
        pkgdesc = Language and compiler for writing highly efficient custom 
Deep-Learning primitives
        pkgver = 3.5.1
-       pkgrel = 2
+       pkgrel = 3
        url = https://triton-lang.org/main/index.html
        arch = x86_64
        license = MIT
@@ -16,9 +16,9 @@ pkgbase = python-triton
        depends = glibc
        depends = gcc-libs
        depends = python
-       source = 
python-triton-3.5.1.tar.gz::https://github.com/triton-lang/triton/archive/refs/tags/v3.5.1.tar.gz
+       source = 
python-triton::git+https://github.com/triton-lang/triton#tag=v3.5.1
        source = 
python-triton-llvm-3.5.1::git+https://github.com/triton-lang/llvm-project#commit=7d5de3033187c8a3bb4d2e322f5462cdaf49808f
-       sha256sums = 
03d7c41f6f2dc1dfa3445776c4a893dc34b1e0ece42b953f036c071ff6409b80
+       sha256sums = 
dae743cae9ab9a8af6bfb4326d7e990af19c4bd734ec584834683eb2abaee9ec
        sha256sums = 
77b77b6eafa9ebc175922705ebb054067a42849ecc84f64f8a42d9d595a7683b
 
 pkgname = python-triton


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 _pkgname=triton
 pkgname=python-${_pkgname}
 pkgver=3.5.1
-pkgrel=2
+pkgrel=3
 pkgdesc="Language and compiler for writing highly efficient custom 
Deep-Learning primitives"
 url="https://triton-lang.org/main/index.html";
 license=(MIT)
@@ -29,18 +29,20 @@ _llvm="https://github.com/triton-lang/llvm-project";
 # https://github.com/triton-lang/triton/blob/v3.5.1/cmake/llvm-hash.txt
 _commit=7d5de3033187c8a3bb4d2e322f5462cdaf49808f
 source=(
-       
"${pkgname}-${pkgver}.tar.gz::${_git}/archive/refs/tags/v${pkgver}.tar.gz"
+       "${pkgname}::git+${_git}#tag=v${pkgver}"
        "${pkgname}-llvm-${pkgver}::git+${_llvm}#commit=${_commit}"
        )
-sha256sums=('03d7c41f6f2dc1dfa3445776c4a893dc34b1e0ece42b953f036c071ff6409b80'
+sha256sums=('dae743cae9ab9a8af6bfb4326d7e990af19c4bd734ec584834683eb2abaee9ec'
             '77b77b6eafa9ebc175922705ebb054067a42849ecc84f64f8a42d9d595a7683b')
 
 prepare() {
-       cd "${_pkgname}-${pkgver}"
+       cd ${pkgname}
        # We bring our own pybind11, cmake and ninja
        sed -i '/requires = \[/s/.*/requires = \["setuptools"\]/' pyproject.toml
        # Werror breaks build with current gcc
        sed -i 's/-Werror//' CMakeLists.txt
+       # Some classes in python's ast module were removed as of version 3.14
+       git cherry-pick -n c44b870bdd9e1ea8933fd4057b6b59a5e6e5407b
 }
 
 build() {
@@ -56,7 +58,7 @@ build() {
        cmake "${llvm_args[@]}"
        cmake --build build-llvm
 
-       cd "${_pkgname}-${pkgver}"
+       cd ${pkgname}
        export LLVM_BUILD_DIR="${srcdir}"/build-llvm
        LLVM_INCLUDE_DIRS="${LLVM_BUILD_DIR}"/include \
        LLVM_LIBRARY_DIR="${LLVM_BUILD_DIR}"/lib \
@@ -65,7 +67,7 @@ build() {
 }
 
 package() {
-       cd "${_pkgname}-${pkgver}"
+       cd ${pkgname}
        python -m installer --destdir="$pkgdir" dist/*.whl
        install -Dm644 LICENSE 
"${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-triton/-/commit/5364eecb7a88dba10378192c54ef54ca57fada1f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-triton/-/commit/5364eecb7a88dba10378192c54ef54ca57fada1f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to