summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8c3c87c3a444b1c7df84200f98d41d5a800c35a0 (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
# Maintainer: fanyujun <dlutfyj@outlook.com>
# Contributor:

pkgname="python-multiscaledeformableattention"
pkgver=1.0.0
pkgrel=2
pkgdesc='Python library of MultiScaleDeformableAttention, the CUDA operator proposed by Deformable DETR.'
arch=(any)
url="https://github.com/fundamentalvision/Deformable-DETR"
license=(MIT)
depends=(python cuda gcc python-pytorch)
conflicts=()
makedepends=(python-setuptools)
source=(Deformable-DETR.zip::"$url/archive/refs/heads/main.zip")
sha256sums=('cad9494f22e6293c33bb210a81ac4d4b7eee92bbaaf696ead965322b9b90739b')

build() {
  cd "${srcdir}/Deformable-DETR-main"
  cd ./models/ops
  python setup.py build
}

package(){
  depends+=()
  cd "${srcdir}/Deformable-DETR-main"
  #python -m installer --destdir="$pkgdir" dist/*.whl  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
  cd ./models/ops
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}