Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: Telling dh_python3 to skip a .so file Date: Tue, 10 Nov 2015 14:00:02 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Nov 10 12:51:42 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.499 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; 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/13157 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20151110125126.GO16403@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 24 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 10 Nov 2015 13:51:26 +0100 X-Original-Message-ID: <20151110125126.GO16403@sar0.p1otr.com> X-Original-References: <20151107191640.GA17141@mitya57.me> <20151109091222.GJ16403@sar0.p1otr.com> <20151110123045.GA4560@mitya57.me> Xref: csiph.com linux.debian.maint.python:7845 > Cześć Piotr, Привет! :) > When that file is built, it needs dh_python3 to replace shebang and add > correct ${python3:Depends}. Of course I can do it manually, but my question > was about how to make dh_python3 ignore a particular .so file, and I am > still interested in that. there's --skip-private that will tell dh_python3 to not touch /usr/lib/gnome-applets/ if you plan to ship this script in /usr/bin/, if not, then: override_dh_auto_install: dh_auto_install sed -i -e '1s,/usr/bin/foo,/usr/bin/bar,' $CURDIR/debian/gnome-applets/usr/lib/gnome-applets/foo not calling dh_python3 at all and add required interpreter to Depends by hand would be my suggestion. There are no other options right now (and I don't really plan to add them) -- 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