Sven-Hendrik Haase pushed to branch main at Arch Linux / Packaging / Packages / 
python-pytorch


Commits:
cf17c191 by Sven-Hendrik Haase at 2025-02-21T18:39:51+01:00
Remove dirty hack - seems unnecessary now thankfully

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-pytorch
        pkgdesc = Tensors and Dynamic neural networks in Python with strong GPU 
acceleration
        pkgver = 2.6.0
-       pkgrel = 6
+       pkgrel = 7
        url = https://pytorch.org
        arch = x86_64
        license = BSD


=====================================
PKGBUILD
=====================================
@@ -8,7 +8,7 @@ pkgname=("${pkgbase}" "${pkgbase}-opt" "${pkgbase}-cuda" 
"${pkgbase}-opt-cuda" "
 # When updating pytorch, also check the compatibility table for torchvision
 # https://github.com/pytorch/vision?tab=readme-ov-file#installation
 pkgver=2.6.0
-pkgrel=6
+pkgrel=7
 _pkgdesc='Tensors and Dynamic neural networks in Python with strong GPU 
acceleration'
 pkgdesc="${_pkgdesc}"
 arch=('x86_64')
@@ -267,10 +267,7 @@ build() {
   export USE_CUDNN=0
   export USE_ROCM=0
   echo "add_definitions(-march=x86-64)" >> cmake/MiscCheck.cmake
-  # this horrible hack is necessary because the current release
-  # ships inconsistent CMake which tries to build objects before
-  # their dependencies, build twice when dependencies are available
-  python setup.py build || python setup.py build
+  python setup.py build
 
   cd "${srcdir}/${_pkgname}-opt"
   echo "Building without cuda or rocm and with non-x86-64 optimizations"
@@ -279,8 +276,7 @@ build() {
   export USE_CUDNN=0
   export USE_ROCM=0
   echo "add_definitions(-march=x86-64-v3)" >> cmake/MiscCheck.cmake
-  # same horrible hack as above
-  python setup.py build || python setup.py build
+  python setup.py build
 
   cd "${srcdir}/${_pkgname}-cuda"
   echo "Building with cuda and without non-x86-64 optimizations"
@@ -291,8 +287,7 @@ build() {
   export MAGMA_HOME=/opt/cuda/targets/x86_64-linux
   cd "${srcdir}/${_pkgname}-cuda"
   echo "add_definitions(-march=x86-64)" >> cmake/MiscCheck.cmake
-  # same horrible hack as above
-  python setup.py build || python setup.py build
+  python setup.py build
 
   cd "${srcdir}/${_pkgname}-opt-cuda"
   echo "Building with cuda and with non-x86-64 optimizations"
@@ -302,8 +297,7 @@ build() {
   export MAGMA_HOME=/opt/cuda/targets/x86_64-linux
   _prepare
   echo "add_definitions(-march=x86-64-v3)" >> cmake/MiscCheck.cmake
-  # same horrible hack as above
-  python setup.py build || python setup.py build
+  python setup.py build
 
   cd "${srcdir}/${_pkgname}-rocm"
   echo "Building with rocm and without non-x86-64 optimizations"
@@ -319,8 +313,7 @@ build() {
   # Conversion of CUDA to ROCm source files
   python tools/amd_build/build_amd.py
   patch -Np1 -i "$srcdir/pytorch-rocm-jit.patch"
-  # same horrible hack as above
-  python setup.py build || python setup.py build
+  python setup.py build
 
   cd "${srcdir}/${_pkgname}-opt-rocm"
   echo "Building with rocm and with non-x86-64 optimizations"
@@ -333,8 +326,7 @@ build() {
   # Conversion of CUDA to ROCm source files
   python tools/amd_build/build_amd.py
   patch -Np1 -i "$srcdir/pytorch-rocm-jit.patch"
-  # same horrible hack as above
-  python setup.py build || python setup.py build
+  python setup.py build
 }
 
 _package() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pytorch/-/commit/cf17c191f5a3ff712166b6d9d9def9da7700b737

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


Reply via email to