blob: 20d114c9593619f0be5c85dcda7b1f051d9680e4 (
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
38
39
40
41
42
43
44
45
46
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=mmengine
pkgname=python-mmengine
pkgver=0.10.7
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"
"https://github.com/open-mmlab/mmengine/pull/1610.patch"
)
sha512sums=('35893ad0c3a462af6009026a91bee8c2ed082d0b5f8fbed96f04d3c7d08087268bb71a5f5c495a460e95fd4d0228fef21f086e1707dff63f70525691adcb9b40'
'fbb36fdd3715f41ce5cefe4fbc8deaccf2a125d72d69acf5574fb09f0f5fadef7b874a52623bd38656c25577d0573e2ee31729e8217b5f9e4c5d1a83e6eb9719')
prepare() {
cd "${_pkgname}-${pkgver}"
patch -p1 -i ${srcdir}/1610.patch
sed -i "s/version=get_version()/version='$pkgver'/" setup.py
}
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:
|