Article View: linux.debian.bugs.dist
Article #81Bug#1144979: ITP: python-discid -- Python binding of Libdiscid
From: Sebastian Ramacher
Date: Wed, 07 Oct 2026 19:50
Date: Wed, 07 Oct 2026 19:50
49 lines
3585 bytes
3585 bytes
Hi Aryan On 2026-10-07 09:35:00 +0530, Aryan Karamtoth wrote: > > Note that we already have python-libdiscid (which builds an > extension module linking against libdiscid0 instead of using ctypes) in > the archive which has a compat interface for python-discid. See [1] and > [2]how this can be integrated. > > Hi Sebastian, > > python-discid is an official wrapper library from MusicBrainz, the > developers of libdiscid. I've also seen someone who had to rewrite their > software to make use of python-libdiscid because python-discid wasn't > available in the archive at that time [1]. > > Also, I'm packaging this for laser and I tried to see if I could integrate > the existing python-libdiscid functionality to it but laser uses some > functions that are specific to python-discid. Integrating python-libdiscid > into laser would require me to rewrite a large amount of code and maintain > it but packaging python-discid would be a lot easier and would also benefit > other users and software that wants to use this version of the library. I am not sure which functions you are referring to. The compat module of python_libdiscid provides everything from discid. In any case, the following patch works for laser: diff --git a/src/metadata.py b/src/metadata.py index 82c30de..561dea5 100644 --- a/src/metadata.py +++ b/src/metadata.py @@ -2,7 +2,10 @@ import os import re import asyncio -import discid +try: + from libdiscid.compat import discid +except ImportError: + import discid import cdio import pycdio import musicbrainzngs FWIW, the laser package on salsa is at least missing a dependency on python3-cdio. Cheers -- Sebastian Ramacher
Technical Details
Message-ID:
<NLFOh-48lu-13@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodReferences:
<NLFOh-48lu-15@gated-at.bofh.it> <Nur50-cfqO-5@gated-at.bofh.it> <NLFOh-48lu-15@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Sebastian Ramacher <sramacher@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1144979: ITP: python-discid -- Python binding of Libdiscid Date: Wed, 07 Oct 2026 21:50:01 +0200 Message-ID: <NLFOh-48lu-13@gated-at.bofh.it> References: <NLFOh-48lu-15@gated-at.bofh.it> <Nur50-cfqO-5@gated-at.bofh.it> <NLFOh-48lu-15@gated-at.bofh.it> X-Original-To: Aryan Karamtoth <spaciouscoder78@disroot.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Oct 7 19:47:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Sebastian Ramacher <sramacher@debian.org>, 1144979@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: wnpp@debian.org X-Debian-Pr-Message: followup 1144979 X-Debian-Pr-Package: wnpp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Debian-User: sramacher X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995603 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 49 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1144979@bugs.debian.org X-Original-Date: Wed, 7 Oct 2026 21:44:15 +0200 X-Original-Message-ID: <asahD5GRWAAjycPJ@ramacher.at> X-Original-References: <f47a9892-d7d8-4507-aa15-42e90c77452c@disroot.org> <PUZPR04MB638232F7231A1B027BAF894ED3A32@PUZPR04MB6382.apcprd04.prod.outlook.com> <f47a9892-d7d8-4507-aa15-42e90c77452c@disroot.org>