Your message dated Thu, 22 Oct 2015 18:28:12 +0200
with message-id <[email protected]>
and subject line Re: Bug#802687: dh-python: dh_python3 does not call pyinstall, 
binary python3 package empty
has caused the Debian Bug report #802687,
regarding dh-python: dh_python3 does not call pyinstall, binary python3 package 
empty
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.)


-- 
802687: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802687
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 1.20141111-2
Severity: important
Tags: patch

Dear Maintainer(s),

We have a source package that builds and packages a shared library using
autotools, and generates binding for various languages via swig.

One of the languages is python. A .py module and a shared library are
created. We use debhelper, and dh-python, to create the packages. More
specifically, we have debian/<package_name>.pyinstall.

All is fine with python 2. I tried to also add a python 3 package and a
corresponding .pyinstall, but the binary package ends up empty.

I noticed that while dh_python2 calls the dh_python.tools.pyinstall
method, dh_python3 does not. Adding the call in the same way that
dh_python2 has fixes the problem.

Is that difference intended? I couldn't fine anything in the
documentation that suggested dh_python3 does not support .pyinstall
files.

Attached is the patch that I used and that fixes the problem for me. I
have not tested all possible use cases and workflows.

Kind regards,
Luca Boccassi



-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500,
'stable'), (104, 'testing'), (103, 'unstable'), (102, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-rc5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dh-python depends on:
pn  python3:any  <none>

dh-python recommends no packages.

dh-python suggests no packages.

-- no debconf information

*** /home/lboccass/git/dh-python/0001-Call-dh_python.tools.pyinstall-from-
dh_python3.patch
From 0cbc1a9c75c2dc5ee7eb9382437283c288613c62 Mon Sep 17 00:00:00 2001
From: Luca Boccassi <[email protected]>
Date: Thu, 22 Oct 2015 15:37:31 +0100
Subject: [PATCH] Call dh_python.tools.pyinstall from dh_python3

dh_python2 calls pyinstall to build a package when the source uses
debian/<packagename>.pyinstall, but dh_python3 does not and binary
packages end up empty due to this.
---
 dh_python3 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dh_python3 b/dh_python3
index 8c62c87..8c2024c 100755
--- a/dh_python3
+++ b/dh_python3
@@ -35,7 +35,7 @@ from dhpython.version import supported, default,
Version,
VersionRange
 from dhpython.pydist import validate as validate_pydist
 from dhpython.fs import fix_locations, Scan
 from dhpython.option import Option
-from dhpython.tools import pyremove
+from dhpython.tools import pyinstall, pyremove

 # initialize script
 logging.basicConfig(format='%(levelname).1s: dh_python3 '
@@ -173,6 +173,11 @@ def main():

         if not private_dir:
             try:
+                pyinstall(interpreter, package, options.vrange)
+            except Exception as err:
+                log.error("%s.pyinstall: %s", package, err)
+                exit(4)
+            try:
                 pyremove(interpreter, package, options.vrange)
             except Exception as err:
                 log.error("%s.pyremove: %s", package, err)
--

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


--- End Message ---
--- Begin Message ---
[Luca Boccassi, 2015-10-22]
> Package: dh-python
> Version: 1.20141111-2

there's 2.20150826 already...

> Is that difference intended? I couldn't fine anything in the

yes, Python 3 now has a common directory which all versions share so
.pyinstall hack is no longer needed.

Simply use /usr/lib/python3/dist-packages in debian/foo.install files

> documentation that suggested dh_python3 does not support .pyinstall
> files.

it is documented in dh_install's manpage :)

--- End Message ---

Reply via email to