blob: a6398065147982498d99edf65cb5fe23663ce83a (
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
|
# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com>
pkgname=python-ptflops
_reponame="flops-counter.pytorch"
_modulename="ptflops"
pkgver=0.7.2.2
pkgrel=1
pkgdesc="Flops counter for convolutional networks in pytorch framework"
url="https://github.com/sovrasov/${_reponame}"
license=('MIT')
arch=('any')
depends=('python-pytorch')
makedepends=('python-setuptools')
source=("${url}/archive/v${pkgver}.tar.gz")
sha256sums=('aa8f5ed4f20601dfef07194df22482622a9728393e98d9305a8db860a0b131ae')
build() {
cd ${srcdir}/${_reponame}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/${_reponame}-${pkgver}
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|