[Debian-pan-maintainers] Bug#1022504: xrstools: FTBFS: distutils.errors.DistutilsClassError: command class <class '__main__.CleanCommand'> must subclass Command

Stefano Rivera stefanor at debian.org
Sat Nov 12 21:47:25 GMT 2022


I tried the obvious patch of moving setuptools imports above distutils,
but setuptools still wasn't having it:

> I: pybuild base:240: python3.11 setup.py clean 
> INFO:xrstools.setup:Use setuptools
> INFO:xrstools.setup:Use setuptools.setup
> error: Multiple top-level packages discovered in a flat-layout: ['fitcc', 'superr', 'debian',
> 'OFFDIAG', 'sandbox', 'XRStools', 'nonregressions', 'useful_scripts'].
>
> 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.
> E: pybuild pybuild:379: clean: plugin distutils failed with: exit code=1: python3.11 setup.py clean 

Given the complexity of setup.py, clearly more work is needed, and I've spent
all the time that I'm going to, on it.

It doesn't help that upstream's bugtracker is on a GitLab without public
registration... :(

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



More information about the Debian-pan-maintainers mailing list