Skip to content

Commit

Permalink
python-mmpycocotools: fix open-mmlab/cocoapi#29
Browse files Browse the repository at this point in the history
  • Loading branch information
hubutui committed Feb 23, 2023
1 parent 14908f6 commit e7f2388
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions archlinuxcn/python-mmpycocotools/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/s
sha512sums=('8eb699757531edbb689f28895d0613d1f7bea88a6a6fadb4d4d30021ba7af8bd9e72f307c635746388b67817a6149b14fd82d1b03a84ca77adade4c4bfa77281'
'b0dc48c4d0fa9eaa101bf94dd75df4b23a9281ba714b0c1f01204d2d48c6f1de14cbe093590b16ef614168621146c9f708f6af2543561a56c76c81b66113c435')

prepare() {
# fix https://github.com/open-mmlab/cocoapi/issues/29
sed -i "s,np.float,float,g" "${_pkgname}-${pkgver}/pycocotools/cocoeval.py"
}

build() {
cd "${_pkgname}-${pkgver}"
python setup.py build
Expand Down
2 changes: 2 additions & 0 deletions archlinuxcn/python-mmpycocotools/lilac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ build_prefix: extra-x86_64
update_on:
- source: pypi
pypi: mmpycocotools
- source: manual
manual: 1
- alias: python
# vim:set ts=2 sw=2 et:

0 comments on commit e7f2388

Please sign in to comment.