blob: bcbeea4072f015e3c27ea957420e50ac22e8f30a (
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
34
35
36
37
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=mmengine
pkgname=python-mmengine
pkgver=0.10.4
pkgrel=1
pkgdesc='OpenMMLab Foundational Library for Training Deep Learning Models'
arch=('any')
url='https://github.com/open-mmlab/mmengine'
license=('Apache-2.0')
depends=(
python-addict
python-matplotlib
python-numpy
python-termcolor
python-yaml
yapf
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/open-mmlab/mmengine/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('3d90f867d27db26feb297d40f356d683a6c676e6d3be8f4513b7a5997ed686fecd3536a22d2a8bb9338c54ebe7d113488b5f298de04e328522976713594f9f3a')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|