blob: bb3e6e19c1a08040cd6e6583f3946722b27c23c9 (
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
47
48
49
50
51
52
53
54
55
56
57
58
|
pkgname=python-vllm-omni
_pkgname=vllm-omni
pkgver=0.22.0
pkgrel=1
pkgdesc="A framework for efficient model inference with omni-modality models "
arch=('any')
url='https://github.com/vllm-project/vllm-omni'
license=(Apache-2.0)
depends=(
python-aenum
python-diffusers
python-janus
python-omegaconf
python-pydub
python-python-multipart
python-torchaudio
python-vllm
python-x-transformers
)
makedepends=(
git
python-setuptools
python-setuptools-scm
python-build
python-installer
)
optdepends=(
'python-vllm-rocm: For ROCm'
'onnxruntime-rocm: For ROCm'
'python-torchaudio-rocm: For ROCm'
'python-cache_dit'
)
source=("git+https://github.com/vllm-project/vllm-omni.git#tag=v${pkgver}")
sha256sums=('aefc1d63fe78ceb7e6bdc82550019f18f36db4e7679fc43340cceb76d3c7f71d')
prepare() {
cd "$srcdir/$_pkgname"
rm -f "dist"/*
sed -i 's/"setuptools>=\([0-9.]\+\).*/"setuptools>=\1",/g' pyproject.toml
sed -i '/^\s*uninstall_onnxruntime()/d' setup.py
}
build() {
cd "$srcdir/$_pkgname"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkgname"
python -m installer --destdir="${pkgdir}" dist/*.whl
rm -f "${pkgdir}/usr/bin/vllm"
}
|