blob: 480485d08f0e9b0b5dab32a67d0d6c9bac1c198f (
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
|
# Maintainer: crl <crl18039102576@126.com>
pkgname=python-torchrl
pkgver=0.7.1
pkgrel=1
pkgdesc="A modular, primitive-first, python-first PyTorch library for Reinforcement Learning."
url="https://github.com/pytorch/rl"
arch=(x86_64)
license=('MIT')
depends=(python python-cloudpickle python-tensordict python-numpy python-pytorch python-packaging)
makedepends=(python-wheel python-installer python-setuptools)
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('423a1169acf386712dde01953f5d1834f5f8f95a92a876bc4fbbae6f069b28b7')
build() {
cd rl-$pkgver
export CXXFLAGS="$CXXFLAGS -DGLOG_USE_GLOG_EXPORT"
export CFLAGS="$CFLAGS -DGLOG_USE_GLOG_EXPORT"
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd rl-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|