Rhel < 8.0 is not supported anymore. Drop support for it. Rhel 8 is problematic: at least on the tests I did with a docker repo, it didn't work, but it could be due to the issue that it is actually different than a real One.
Unified · Split
| @@ -487,15 +487,31 @@ class SphinxDependencyChecker: · 486 unmodified lines | |||
| 487 | 487 | ||
| 488 | progs["virtualenv"] = "python-virtualenv" | 488 | progs["virtualenv"] = "python-virtualenv" |
| 489 | 489 | ||
| 490 | if rel and rel < 8: | 490 | if not rel or rel < 8: |
| 491 | old = 1 | 491 | old = 1 |
| 492 | self.pdf = False | 492 | self.pdf = False |
| 493 | 493 | ||
| 494 | # RHEL 7 is in ELS, currently up to Jun, 2026 | 494 | print("ERROR: Distro not supported. Too old?") |
| 495 | return | ||
| 496 | |||
| 497 | # TODO: check if RHEL8 still works. | ||
| 498 | # On my tests with docker "redhat/ubi8" image, there's no | ||
| 499 | # python3-sphinx (or similar) package. It comes with Python 3.6, | ||
| 500 | # but there are other python packages over there, so it may be | ||
| 501 | # possible to work with venv. | ||
| 502 | |||
| 503 | if self.first_hint: | ||
| 504 | print("Note: RHEL-based distros typically require extra repositories.\n" \ | ||
| 505 | "For most, enabling epel and crb are enough:\n" \ | ||
| 506 | "\tsudo dnf install -y epel-release", \ | ||
| 507 | "\tsudo dnf config-manager --set-enabled crb\n" \ | ||
| 508 | "Yet, some may have other required repositories. Those commands could be useful:" \ | ||
| 509 | "\tsudo dnf repolist all" \ | ||
| 510 | "\tsudo repoquery --available --info <pkgs>", | ||
| 511 | "\tsudo dnf config-manager --set-enabled '*' # enable all - probably not what you want") | ||
| 512 | |||
| 513 | self.first_hint = False | ||
| 495 | 514 | ||
| 496 | print("Note: texlive packages on RHEL/CENTOS <= 7 are incomplete. Can't support PDF output") | ||
| 497 | print("If you want to build PDF, please read:") | ||
| 498 | print("\thttps://www.systutorials.com/241660/how-to-install-tex-live-on-centos-7-linux/") | ||
| 499 | 515 | ||
| 500 | if self.pdf: | 516 | if self.pdf: |
| 501 | pdf_pkgs = [ | 517 | pdf_pkgs = [ |