[arch-commits] Commit in python-pytorch/trunk (PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 4 15:52:24 UTC 2019
Date: Monday, November 4, 2019 @ 15:52:23
Author: foutrelis
Revision: 524093
Python 3.8 rebuild
Modified:
python-pytorch/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-04 15:04:01 UTC (rev 524092)
+++ PKGBUILD 2019-11-04 15:52:23 UTC (rev 524093)
@@ -5,7 +5,7 @@
pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda")
_pkgname="pytorch"
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration"
arch=('x86_64')
url="https://pytorch.org"
@@ -33,6 +33,10 @@
# https://github.com/pytorch/pytorch/issues/26555
sed -i 's#^ ${CMAKE_CURRENT_SOURCE_DIR}/tensor_iterator_test.cpp##g' aten/src/ATen/test/CMakeLists.txt
+ # Fix build with Python 3.8
+ # https://github.com/pytorch/pytorch/issues/28060
+ find -name '*.cpp' -exec sed -i '/tp_print/s/nullptr/0/' {} +
+
cd ..
cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt"
More information about the arch-commits
mailing list