#1150264 setuptools: please define a nodoc build profile

#1150264#5
Date:
2026-10-07 19:01:37 UTC
From:
To:
Hi Matthias,

Please consider patch hereunder to help trim a bit the key_package set.

Greetings

Alexandre
--- setuptools-84.0.0/debian/control    2026-09-01 09:25:31.000000000 +0200
+++ ../setuptools-84.0.0/debian/control 2026-10-07 20:55:00.961384453 +0200
@@ -5,16 +5,17 @@
 Build-Depends:
  debhelper-compat (= 13),
  dh-python,
- furo,
+ dh-sequence-sphinxdoc <!nodoc>,
+ furo <!nodoc>,
  python3-all,
- python3-doc,
- python3-alabaster,
- python3-sphinx,
- python3-sphinx-favicon,
- python3-sphinx-inline-tabs,
- python3-sphinx-notfound-page,
- python3-sphinx-reredirects,
- python3-sphinxcontrib-towncrier,
+ python3-doc <!nodoc>,
+ python3-alabaster <!nodoc>,
+ python3-sphinx <!nodoc>,
+ python3-sphinx-favicon <!nodoc>,
+ python3-sphinx-inline-tabs <!nodoc>,
+ python3-sphinx-notfound-page <!nodoc>,
+ python3-sphinx-reredirects <!nodoc>,
+ python3-sphinxcontrib-towncrier <!nodoc>,
  python3-wheel
 #Build-Conflicts: python-setuptools, python3-setuptools, pypy-setuptools
 Standards-Version: 4.7.4
--- setuptools-84.0.0/debian/rules      2026-09-01 09:09:50.000000000 +0200
+++ ../setuptools-84.0.0/debian/rules   2026-10-07 20:55:13.515212080 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f

 %:
-       dh $@ --with python3,sphinxdoc --buildsystem pybuild
+       dh $@ --with python3 --buildsystem pybuild

 override_dh_auto_test:

@@ -9,9 +9,9 @@

 override_dh_auto_install:
        dh_auto_install
-
+ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
        PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
-
+endif
        mkdir -p debian/python3-setuptools-whl/usr/share/python-wheels
        python3 setup.py bdist_wheel \
                -d debian/python3-setuptools-whl/usr/share/python-wheels