Your message dated Sat, 06 Apr 2024 15:46:24 +0200
with message-id <[email protected]>
and subject line Re: Bug#1063663: dh-make: dh_make with python package type 
does not add by default --with python3
has caused the Debian Bug report #1063663,
regarding dh-make: dh_make with python package type does not add by default 
--with python3
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1063663: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063663
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-make
Version: 2.202304
Severity: minor
X-Debbugs-Cc: [email protected], [email protected]

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

--- End Message ---
--- Begin Message ---
Hi Francesco,

On Sat, 2024-02-10 at 17:39 +0000, Francesco Ballarin wrote:
> I am relatively new to debian packaging, and I am mainly using dh_make with 
> python libraries.

Welcome to Debian :)

> 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?\

Indeed, as described in pybuild manpage, you can either add --with
python3 to the dh helper in d/rules, or add dh-sequence-python3 to
Build-Depends, and dh_make does the latter.

You also have a small paragraph on the rational for dh-sequence-*
dependencies in the dh manpage.

> 
> 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.

Best,
-- 
Baptiste Beauplat

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to