Skip to content

Commit

Permalink
python-lvis-git: fix lvis-dataset/lvis-api#37
Browse files Browse the repository at this point in the history
  • Loading branch information
hubutui committed Feb 22, 2023
1 parent cd06d43 commit ef3834d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions archlinuxcn/python-lvis-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ conflicts=(python-lvis)
source=("${_pkgname}::git+https://github.com/lvis-dataset/lvis-api.git")
sha512sums=('SKIP')

prepare() {
# fix https://github.com/lvis-dataset/lvis-api/issues/37
sed -i "s,np.float,float,g" "${_pkgname}/lvis/eval.py"
}

pkgver() {
cd "${_pkgname}"
printf "%s.r%s.%s" "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
Expand Down

0 comments on commit ef3834d

Please sign in to comment.