Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11278

Re: Binary package contains no Python dependencies, how to convince ‘dh_python3’ to detect them?

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Ben Finney <bignose@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Binary package contains no Python dependencies, how to convince ‘dh_python3’ to detect them?
Date Fri, 25 Jan 2019 11:30:01 +0100
Message-ID <xk6Uh-4fW-5@gated-at.bofh.it> (permalink)
References <wbO0F-6sO-9@gated-at.bofh.it> <wc7cZ-1uE-1@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Jan 25 10:26:49 2019
Old-Return-Path <debian-python@m.gmane.org>
X-Amavis-Spam-Status No, score=-5.318 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RDNS_NONE=0.793, SARE_HEAD_8BIT_SPAM=0.888] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -4.6
X-Injected-Via-Gmane http://gmane.org/
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
Cancel-Lock sha1:zl9njNz8exDbGA7vvyjmtXt08wY=
X-Mailing-List <debian-python@lists.debian.org> archive/latest/16732
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/86r2d1c9t8.fsf@benfinney.id.au
Approved robomod@news.nic.it
Lines 67
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 25 Jan 2019 21:26:27 +1100
X-Original-Message-ID <86r2d1c9t8.fsf@benfinney.id.au>
X-Original-References <85va9g8zwm.fsf@benfinney.id.au> <20180716083354.vs2ezwfr3qoquzmw@sar0.p1otr.com>
Xref csiph.com linux.debian.maint.python:11278

Show key headers only | View raw


Piotr Ożarowski <piotr@debian.org> writes:

> gandi-cli name suggests it's not providing public module and thus no
> "public" requires.txt. If you want dh_python3 to read dependencies from
> a random file - make sure dh_python3 knows which one it should use:
>
>  override_dh_python3:
>  	dh_python3 --requires path/to/file_with_deps.txt

That doesn't appear to help.

I have instrumented the ‘override_dh_python3’ actions temporarily to
emit the content of the generated ‘requires.txt’ for the package, so it
can be seen in the build output.

The package build run emits this output:

=====
running egg_info
[…]
writing requirements to gandi.cli.egg-info/requires.txt
[…]
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cat gandi.cli.egg-info/requires.txt
IPy
click>=3.1
pyyaml
requests
setuptools

[test]
coverage
nose
tox
dh_python3 \
    --package gandi-cli \
    --requires gandi.cli.egg-info/requires.txt \
    debian/gandi-cli/usr/share/gandi-cli/
[…]
=====

(When I got the name wrong in earlier runs, ‘dh_python3’ emitted a
warning “cannot find requirements file”. So the fact there is no error
above, suggests that in the above run it is reading the correct file.)

Yet the resulting binary package does not contain any of the
corresponding dependencies.

They are all in ‘/usr/share/dh-python/dist/cpython3_fallback’:

=====
$ for dist in setuptools pyyaml click requests IPy ; do grep -i "^$dist\>" /usr/share/dh-python/dist/cpython3_fallback ; done
setuptools python3-pkg-resources
PyYAML python3-yaml
click python3-click
requests python3-requests
IPy python3-ipy
=====

So why is ‘dh_python3’ not adding them to the binary package
dependencies?

-- 
 \        “To me, boxing is like a ballet, except there's no music, no |
  `\       choreography, and the dancers hit each other.” —Jack Handey |
_o__)                                                                  |
Ben Finney

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Binary package contains no Python dependencies, how to convince  ‘dh_python3’ to detect them? Ben Finney <bignose@debian.org> - 2018-07-15 14:10 +0200
  Re: Binary package contains no Python dependencies, how to convince ‘dh_python3’ to detect them? Piotr Ożarowski <piotr@debian.org> - 2018-07-16 10:40 +0200
    Re: Binary package contains no Python dependencies, how to convince  ‘dh_python3’ to detect them? Ben Finney <bignose@debian.org> - 2019-01-25 11:30 +0100

csiph-web