Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#72656 - [wireplumber] Remove unneeded hotdoc build-dependency

Attached to Project: Arch Linux
Opened by nyanpasu64 (nyanpasu64) - Sunday, 07 November 2021, 18:25 GMT
Last edited by Jan Alexander Steffens (heftig) - Monday, 15 November 2021, 20:02 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
wireplumber no longer depends on hotdoc to generate docs since 7 months ago (https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/b0fe1fe8312e0d6b75a7ff35564abf3ebe0b7594), but the wireplumber 0.4.4 package still requires it as a build dependency. The `hotdoc` Arch package requires `python-networkx`, which depends on numpy and scipy and pandas. These are very large scientific packages, which are unnecessary to build wireplumber. I think wireplumber should remove the hotdoc dependency.

Why are these large packages pulled in by hotdoc? hotdoc seems to require networkx (https://github.com/hotdoc/hotdoc/blob/b4ac1c4fc47a65d1e1767d949fb067789c488a96/hotdoc/extensions/gi/node_cache.py). networkx can partially function without numpy, scipy, matplotlib, or pandas (https://github.com/networkx/networkx/blob/365cf572089909f5498cda404fbc4455cac8ee7a/networkx/conftest.py#L188), though they're installed by default by pip (https://networkx.org/documentation/stable/install.html) and the rendering layout code (https://github.com/networkx/networkx/blob/main/networkx/drawing/layout.py) depends on numpy.

Perhaps the `python-networkx` package could also mark all of its scientific Python dependencies as optional (and add a hard dependency on `python` to replace the implicit dependency). My concern is that the only choices are to install numpy/etc. when `python-networkx` is used purely as a data-structure dependency, or to make installing `python-networkx` result in an incomplete package for people using it for scientific programming. Hopefully most people doing scientific programming are using virtualenvs or Conda, or will have installed numpy/scipy anyway... hopefully...
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Monday, 15 November 2021, 20:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  wireplumber 0.4.5-2

Loading...