Bug 2221964

Summary: python-mpmath fails to build with Sphinx 7.x
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-mpmathAssignee: Susi Lehtola <susi.lehtola>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: loganjerry, susi.lehtola, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-mpmath-1.3.0-6.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-30 10:55:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2188968, 2231791, 2244836    

Description Karolina Surma 2023-07-11 11:53:22 UTC
python-mpmath fails to build with Sphinx 7.x in Fedora 39 (currently Rawhide).

The issue detected:
```
+ /usr/bin/python3 setup.py build_sphinx -b html

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: invalid command 'build_sphinx'
```

Sphinx 7 has removed the setuptools integration (see: https://github.com/sphinx-doc/sphinx/pull/11363).
`setup.py` has been long deprecated and projects are encouraged to migrate away from using it.


For the logs from testing build attempts, see:
https://copr.fedorainfracloud.org/coprs/ksurma/doc-stack/package/python-mpmath/

You can test you package in mock running:

$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/doc-stack/fedora-rawhide-x86_64/ --no-clean your.src.rpm
$ mock -r fedora-rawhide-x86_64 --addrepo=https://download.copr.fedorainfracloud.org/results/ksurma/doc-stack/fedora-rawhide-x86_64/ shell

We'd like to include Sphinx 7 in Fedora 39.
Let us know here if you have any questions. Thank you!

Comment 1 Fedora Release Engineering 2023-08-16 07:19:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 2 Fedora Update System 2024-01-30 10:53:38 UTC
FEDORA-2024-faa4608d44 has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-faa4608d44

Comment 3 Zbigniew Jędrzejewski-Szmek 2024-01-30 10:54:45 UTC
I dropped the doc subpackage. I expect that most people use the online
docs anyway, so this doesn't seem terribly important. If somebody wants
to figure out how to fix the build, a patch restoring it would be welcome.

Comment 4 Fedora Update System 2024-01-30 10:55:15 UTC
FEDORA-2024-faa4608d44 has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 5 Jerry James 2024-01-31 16:06:38 UTC
This broke sympy, which has `BuildRequires: python-mpmath-doc` to enable cross-linking of documentation.  I'll take a look and see if I can figure out how to build the docs.  If it looks too horrible, we'll build sympy without the mpmath cross-links.