Package: dh-make Version: 2.202304 Severity: minor X-Debbugs-Cc: francesco.balla...@unicatt.it, dpars...@debian.org
Dear Maintainer, Hi, I am relatively new to debian packaging, and I am mainly using dh_make with python libraries. I noticed that the dh call produced by default when initializating a new python project with dh_make is ======================================== dh $@ --buildsystem=pybuild ======================================== Is there a specific reason why the default line is not ======================================== dh $@ --with python3 --buildsystem=pybuild ======================================== instead? Is --with python3 implicitly enabled? If not, is not adding it by default done on purpose? There is a comment stating ======================================== # If you need to rebuild the Sphinx documentation: # Add sphinxdoc to the dh --with line. ======================================== but there is no suggestion to add python3 to the --with arguments. As a beginner, the source of my confusion is that dh_make seems to automatically handle all requirements written in the "quick guide for maintainers" at https://manpages.debian.org/testing/dh-python/dh_python3.1.en.html (notably, the first and the last bullet), except for adding the --with argument. Simple script to reproduce is reported below. Thanks, Francesco ---------------------------------------- # Create a mock python library $ mkdir my_python_library $ touch my_python_library/__init__.py $ tar -czvf archive.tar.gz my_python_library # Run dh_make $ dh_make -p my-python-library_0.0.1 -f archive.tar.gz # select p when asked "Type of package" $ cat debian/rules ======================================== #!/usr/bin/make -f # See debhelper(7) (uncomment to enable). # Output every command that modifies files on the build system. #export DH_VERBOSE = 1 export PYBUILD_NAME=my-python-library %: dh $@ --buildsystem=pybuild # If you need to rebuild the Sphinx documentation: # Add sphinxdoc to the dh --with line. # # And uncomment the following lines. #execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9 #execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9 #execute_after_dh_auto_build-indep: # PYTHONPATH=. python3 -m sphinx -N -bhtml \ # docs/ build/html # HTML generator # PYTHONPATH=. python3 -m sphinx -N -bman \ # docs/ build/man # Manpage generator ======================================== -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.6.13-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages dh-make depends on: ii debhelper 13.13 ii dpkg-dev 1.22.4 ii make 4.3-4.1 ii python3 3.11.6-1 dh-make recommends no packages. Versions of packages dh-make suggests: ii build-essential 12.10 -- no debconf information