Package Details: python-ctranslate2-bin 4.6.3-1

Git Clone URL: https://aur.archlinux.org/python-ctranslate2-bin.git (read-only, click to copy)
Package Base: python-ctranslate2-bin
Description: CTranslate2 is a C++ and Python library for efficient inference with Transformer models.
Upstream URL: https://github.com/OpenNMT/CTranslate2
Licenses: MIT
Conflicts: ctranslate2-git, python-ctranslate2, python-ctranslate2-git
Provides: ctranslate2, python-ctranslate2
Submitter: gilcu3
Maintainer: gilcu3
Last Packager: gilcu3
Votes: 1
Popularity: 0.000112
First Submitted: 2023-11-02 22:55 (UTC)
Last Updated: 2026-01-10 18:04 (UTC)

Latest Comments

flylightning commented on 2025-12-24 14:22 (UTC) (edited on 2025-12-24 14:24 (UTC) by flylightning)

Quick and dirty workaround, not recommended:
From ba922647acaac645a4336a6f2f6225ef8abec603 Mon Sep 17 00:00:00 2001
From: Xiao Pan <xyz@flylightning.xyz>
Date: Wed, 24 Dec 2025 22:20:51 +0800
Subject: [PATCH] Workaround python -m missing wheel argument error

Full error: "python -m installer: error: the following arguments are
required: wheel"

Signed-off-by: Xiao Pan <xyz@flylightning.xyz>
---
 PKGBUILD | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 956074f..bb664b7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,10 +12,11 @@ conflicts=('ctranslate2-git' 'python-ctranslate2-git' 'python-ctranslate2')
 depends=('gcc-libs' 'python-numpy' 'python-pytorch' 'python-setuptools' 'python-yaml')
 makedepends=('python-installer')
 _py=cp313
+_wheel_name=${_pkgname//-/_}-$pkgver-$_py-${_py}-manylinux2014_x86_64.manylinux_2_17.whl
 _wheel_name_x86_64=${_pkgname//-/_}-$pkgver-$_py-${_py}-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
-source_x86_64=(https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/$_pkgname/$_wheel_name_x86_64)
+source_x86_64=($_wheel_name::https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/$_pkgname/$_wheel_name_x86_64)
 _wheel_name_aarch64=${_pkgname//-/_}-$pkgver-$_py-${_py}-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
-source_aarch64=(https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/$_pkgname/$_wheel_name_aarch64)
+source_aarch64=($_wheel_name::https://files.pythonhosted.org/packages/$_py/${_pkgname::1}/$_pkgname/$_wheel_name_aarch64)
 sha256sums_x86_64=('ac1207e1aef08bf3679f33848b96f23a4d3ea078296cee473cce6a148cd8e145')
 sha256sums_aarch64=('3fb491fe14bce7fade2ad0ec43a95ab4f3542c12c0d46b3b10638e977230d4a7')

-- 
2.52.0

mddanish00 commented on 2025-04-11 09:03 (UTC)

ctranslate2 Python 3.13 wheel already available. Please use that instead.

dbb commented on 2025-01-03 13:02 (UTC)

Fails to build in a clean chroot with:

/usr/bin/python: No module named installer

Need to add python-installer to makedepends array.

xuiqzy commented on 2024-11-14 01:47 (UTC)

Can this provide python-ctranslate2 in its pkgbuild so it can be used instead of the non-bin source package? E.g., for python-faster-whisper?

yochananmarqos commented on 2023-12-10 16:55 (UTC)

Correct dependencies:

depends=('gcc-libs' 'python-numpy' 'python-pytorch' 'python-setuptools' 'python-yaml')

Use python-installer, not python-pip. See Python package guidelines

python -m installer --destdir="$pkgdir" *.whl