summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b11cf03468ef731b93c4d4e358d80bcb27ddaa59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#  Maintainer: Vincent Lequertier <vincent at vl8r dot eu>
pkgname=python-tensordict
pkgdesc="A dictionary-like class that inherits properties from PyTorch tensors"
pkgver=0.2.1
pkgrel=3
url="https://github.com/pytorch/tensordict"
arch=(x86_64)
license=('MIT')
depends=('python' 'python-cloudpickle')
makedepends=(python-wheel)
source=('https://github.com/pytorch/tensordict/releases/download/v0.2.1/tensordict-0.2.1-cp311-cp311-manylinux1_x86_64.whl')
sha256sums=('516c0cf63418235f829490c93fc5f8ce579ca2c1f67653c8e0e77e6aa6f6117d')


package() {
	cd "$srcdir"
	PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.whl
	install -Dm644 "tensordict-${pkgver}".dist-info/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}