cubicweb #17061243 cubicweb-ctl list is broken [waiting feedback]

The included patch seems not to fix the problem. I've grafted the patch on 3.24 branch and still have the problem.

In fact, I don't understand why CubicWebNoAppConfiguration.available_cubes() returns the cubes's package name instead of the cube's name.

I also have a traceback on a preprod machine where all cubes are installed via debian packages:

[host ~]$ dpkg -l "*cubicweb*"  | grep "^ii"
ii  cubicweb-addressbook               1.8.0-1              all          contact information component for the CubicWeb framework
ii  cubicweb-card                      0.5.8-1              all          card component for the CubicWeb framework
ii  cubicweb-common                    3.24.3-1             all          transitional package
ii  cubicweb-ctl                       3.24.3-1             all          tool to manage the CubicWeb framework
ii  cubicweb-eac                       0.2.0-1              all          Implementation of Encoded Archival Context for CubicWeb
ii  cubicweb-elasticsearch             0.2.0-1              all          Simple ElasticSearch indexing integration for CubicWeb
ii  cubicweb-file                      1.18.0-1             all          file component for the CubicWeb framework
ii  cubicweb-XXX            0.6.0-1~dbb3943b0562 all          XXX
ii  cubicweb-YYY        0.4.0-1~8e469de92328 all          Edition components for YYY
ii  cubicweb-geocoding                 0.2.1-1              all          geocoding component for the CubicWeb framework
ii  cubicweb-jsonschema                0.1.0-1178bd93016ad1 all          JSON Schema for CubicWeb
ii  cubicweb-link                      1.7.1-1siaf1         all          link component for the CubicWeb framework
ii  cubicweb-prov                      0.2.0-1              all          The PROV Ontology
ii  cubicweb-sentry                    0.1.3-1              all          support for Sentry (getsentry.com)
ii  cubicweb-skos                      1.0.0-1              all          "SKOS implementation for cubicweb"
ii  cubicweb-twisted                   3.24.3-1             all          transitional package
ii  cubicweb-varnish                   0.3.0-1              all          cubicweb varnish helper
ii  cubicweb-web                       3.24.3-1             all          transitional package
ii  python-cubicweb                    3.24.3-1             all          the complete CubicWeb framework
ii  python-cubicweb-postgresql-support 3.24.3-1             all          postgres support for the CubicWeb  framework
ii  python-cubicweb-pyramid            3.24.3-1             all          meta package to use Pyramid as HTTP server for CubicWeb
ii  python-cubicweb-twisted            3.24.3-1             all          meta package to use Twisted as HTTP server for CubicWeb
[cw-cms] [root@SIAF12 ~]$ cubicweb-ctl list
Traceback (most recent call last):
  File "/usr/bin/cubicweb-ctl", line 4, in <module>
   run(sys.argv[1:])
 File "/usr/lib/python2.7/dist-packages/cubicweb/cwctl.py", line 1070, in run
   cwcfg.load_cwctl_plugins()
 File "/usr/lib/python2.7/dist-packages/cubicweb/cwconfig.py", line 698, in load_cwctl_plugins
   for cube in cls.available_cubes():
 File "/usr/lib/python2.7/dist-packages/cubicweb/cwconfig.py", line 473, in available_cubes
   module = entry_point.load()
 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2188, in load
   self.require(env, installer)
 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2202, in require
   items = working_set.resolve(reqs, env, installer)
 File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 639, in resolve
   raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: cubicweb-varnish>=0.3.0
prioritynormal
typebug
done in<not specified>
closed by<not specified>
patch[cwconfig] return cube name instead of package name in available_cubes() (closes #17061243) [pending-review]
ticket traceability chain