Hello, Matthias Klose, le ven. 23 sept. 2022 15:38:42 +0200, a ecrit: > https://ci.debian.net/data/autopkgtest/testing/amd64/p/pocketsphinx-python/26322074/log.gz > > [...] > autopkgtest [07:48:02]: test tests: [----------------------- > patching file setup.py > ==================== configure with PYTHON 3.10 ================== > /tmp/autopkgtest-lxc.wiu8e7yd/downtmp/build.lPV/src/setup.py:7: > DeprecationWarning: The distutils package is deprecated and slated for > removal in Python 3.12. Use setuptools or check PEP 632 for potential > alternatives > from distutils import log > /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.
Ok, I have fixed this in git, but now we are getting a different issue: « error: Multiple top-level packages discovered in a flat-layout: ['swig', 'deps', 'debian', 'pocketsphinx_disabled']. To avoid accidental inclusion of unwanted files or directories, setuptools will not proceed with this build. If you are trying to create a single distribution with multiple packages on purpose, you should not rely on automatic discovery. Instead, consider the following options: 1. set up custom discovery (`find` directive with `include` or `exclude`) 2. use a `src-layout` 3. explicitly set `py_modules` or `packages` with a list of names To find more information, look for "package discovery" on setuptools docs. » I have tried to look at the setuptools documentation, but I fail to find how to just disable automatic discovery. setup.py really does the job of listing files etc., so I don't understand what's left to make setuptools not perform automatic discovery, while previous versions of setuptools were behaving just fine. Samuel