Debian Patches

Status for pocketsphinx-python/1:0.1.15-3

Patch Description Author Forwarded Bugs Origin Last update
nosphinxbase We do not want to build sphinxbase bindings again no
system_sphinxbase We want to use the system-provided sphinxbase files no
system_pocketsphinx We want to use the system-provided pocketsphinx files no
fix-import Our current version of sphinxbase requires this double-package name no
test-fix With our current version of sphinx, we get a different test result no
paths no
setuptools https://github.com/bambocher/pocketsphinx-python/pull/77

commit 1575fe5938d049caa7fb13334cc17bdc816373fd

Fix build against setuptools 65

The newer setuptools warns:

/usr/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.

So we have to import setuptools before any distutils import.

diff --git a/setup.py b/setup.py
index 466be08..4321fed 100644
Samuel Thibault <samuel.thibault@ens-lyon.org> no 2022-09-26

All known versions for source package 'pocketsphinx-python'

Links