blob: 4fc1c32b5465361642d26c9d7b9708c68b75a8bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Benoit Brummer (Trougnouf) <trougnouf@gmail.com>
pkgname=('python-torchvision-rocm-bin')
pkgdesc="Datasets, transforms, and models specific to computer vision (binary release)"
pkgver=0.18.0
pkgrel=3
url="https://pytorch.org/vision"
license=('BSD')
arch=('x86_64')
depends=(
numactl
python-numpy
python-pillow
python-requests
python-scipy
python-sympy
python-pytorch-rocm
)
makedepends=('python-setuptools' 'python-wheel')
conflicts=(python-torchvision)
provides=("python-torchvision=${pkgver}" "python-torchvision-rocm=${pkgver}")
source=("https://download.pytorch.org/whl/rocm6.0/torchvision-${pkgver}%2Brocm6.0-cp312-cp312-linux_x86_64.whl")
sha256sums=('8180284a250e63c8214cea7eb19e22a79f44c5fcb5f3ba815620ac923e8aab2f')
package() {
# Define where to install the package
cd "${srcdir}"
# Install the wheel file
python -m pip install --no-deps --root="${pkgdir}" torchvision-${pkgver}%2Brocm6.0-cp312-cp312-linux_x86_64.whl --break-system-packages --no-warn-script-location --ignore-installed
}
|