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


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

Re: How does python:Depends work?

From Piotr Ożarowski <piotr@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: How does python:Depends work?
Date 2015-09-28 10:10 +0200
Message-ID <qdBFv-8kb-5@gated-at.bofh.it> (permalink)
References <qdBm9-7It-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Julien Puydt, 2015-09-28]
> I'm wondering how the python:Depends substitution actually works, since 
> it looks like it doesn't in some of my recent packages : what was I supposed
> to do that I didn't?

dh_python2 (dh_python3 in case of python3:Depends) checks installed¹
files and generate interpreter dependencies (python >= 2.X, python2.7 if
hardcoded in shebang, etc.) or dependencies detected from requires.txt
(make sure you have appropriate one in Build-Depends if it didn't detect
something, you'll need it for tests anyway)

[¹] it's a common mistake to invoke dh_python2, then install files and
    wonder why dh_python2 didn't do its job
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

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


Thread

How does python:Depends work? Julien Puydt <julien.puydt@laposte.net> - 2015-09-28 09:50 +0200
  Re: How does python:Depends work? Piotr Ożarowski <piotr@debian.org> - 2015-09-28 10:10 +0200
  Re: How does python:Depends work? Julien Cristau <julien.cristau@logilab.fr> - 2015-09-28 10:10 +0200
  Re: How does python:Depends work? Julien Puydt <julien.puydt@laposte.net> - 2015-09-28 11:30 +0200

csiph-web