Path: csiph.com!goblin3!goblin.stu.neva.ru!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: How does python:Depends work? Date: Mon, 28 Sep 2015 10:10:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Sep 28 08:01:33 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.999 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (3.16.0-4-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/12639 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20150928080116.GH6768@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 17 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 28 Sep 2015 10:01:16 +0200 X-Original-Message-ID: <20150928080116.GH6768@sar0.p1otr.com> X-Original-References: <20150928074452.GA10643@cauchy.localdomain> Xref: csiph.com linux.debian.maint.python:7328 [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