Package Details: python-modelscope 1.36.0-2

Git Clone URL: https://aur.archlinux.org/python-modelscope.git (read-only, click to copy)
Package Base: python-modelscope
Description: ModelScope: bring the notion of Model-as-a-Service to life.
Upstream URL: https://www.modelscope.cn/
Licenses: Apache
Submitter: Astro_angelfish
Maintainer: Astro_angelfish
Last Packager: Astro_angelfish
Votes: 0
Popularity: 0.000000
First Submitted: 2025-10-10 10:41 (UTC)
Last Updated: 2026-04-22 13:18 (UTC)

Latest Comments

mytbk commented on 2026-01-06 10:26 (UTC) (edited on 2026-01-06 10:27 (UTC) by mytbk)

You can build the whl from source, then install the whl.

diff --git a/PKGBUILD b/PKGBUILD
index 7f90894..d012115 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,10 +12,13 @@ license=('Apache')
 depends=('python' 'python-filelock' 'python-requests>=2.25' 'python-setuptools' 'python-tqdm>=4.64.0' 'python-urllib3>=1.26')
 makedepends=('python-pip')
 # It seems that .tar.gz source cannot be easily built, so we're heading the .whl file
-source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py3-none-any.whl")
-sha512sums=('46c0fd56ce5924090468df6774ec6d8fe366e082cd04f22d40356aa7fbae1d26755f4e1ff79afed26197a11bd93d3cd59bdcac983516f02fe34c60b24986b508')
+source=("git+https://github.com/modelscope/modelscope.git#tag=v${pkgver}")
+#source=("https://files.pythonhosted.org/packages/py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py3-none-any.whl")
+sha512sums=('SKIP')

 package() {
+       cd "${srcdir}/modelscope"
+       make whl
   pip install \
     --verbose \
     --disable-pip-version-check \
@@ -25,6 +28,6 @@ package() {
     --no-deps \
     --root="$pkgdir" \
     --prefix=/usr \
-    *.whl
+    package/dist/*.whl
 }