[arch-commits] Commit in python-pytorch/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Nov 20 00:54:16 UTC 2017


    Date: Monday, November 20, 2017 @ 00:54:15
  Author: svenstaro
Revision: 267508

upgpkg: python-pytorch 0.2.0-4

Add conflicts to python-pytorch

Modified:
  python-pytorch/trunk/PKGBUILD

----------+
 PKGBUILD |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-19 23:45:32 UTC (rev 267507)
+++ PKGBUILD	2017-11-20 00:54:15 UTC (rev 267508)
@@ -5,7 +5,7 @@
 pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda")
 _pkgname="pytorch"
 pkgver=0.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration"
 arch=('x86_64')
 url="http://pytorch.org"
@@ -112,6 +112,7 @@
 package_python2-pytorch-cuda() {
   depends+=('python2' 'python2-yaml' 'python2-numpy')
   optdepends=('cuda' 'cudnn')
+  conflicts=('python2-pytorch')
   cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda"
   python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
@@ -120,6 +121,7 @@
 package_python-pytorch-cuda() {
   depends+=('python' 'python-yaml' 'python-numpy')
   optdepends=('cuda' 'cudnn')
+  conflicts=('python-pytorch')
   cd "$srcdir/${_pkgname}-${pkgver}-py3-cuda"
   python setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"


More information about the arch-commits mailing list