Path: csiph.com!news.mixmin.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod From: Ben Finney Newsgroups: linux.debian.maint.python Subject: Re: Building a module and an application package from one source Date: Thu, 25 Aug 2016 07:50:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Aug 25 05:41:32 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.206 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RDNS_NONE=0.793] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 X-Injected-Via-Gmane: http://gmane.org/ Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (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 Cancel-Lock: sha1:YuVy4xxnb3FkfwlPU1cv6tPgVM8= X-Mailing-List: archive/latest/14153 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/85eg5dwgln.fsf@benfinney.id.au Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 25 Aug 2016 15:41:08 +1000 X-Original-Message-ID: <85eg5dwgln.fsf@benfinney.id.au> X-Original-References: <20160825052353.etfifqz7qt4e5n3y@Kraftkrust> X-Original-X-Complaints-To: usenet@blaine.gmane.org Xref: csiph.com linux.debian.maint.python:8812 Sebastian Humenda writes: > I want to repackage GladTeX (it used to be Perl and has been rewritten > in Python). Thank you for working on this package for Debian. > GladTeX comes with a module and an command-line application. Pybuild > copies all files into the package defined first in debian/control and > I am not sure how to separate the module from the application. Is the “command-line application” just a single program file, which imports the library and does its stuff? If so, that file should be installed to the right place (‘/usr/bin/foo’ probably) by the build system. You then configure ‘dh_install’ to install that file specifically to the ‘foo’ binary package. Then you use ‘dh_python3’ to package the Python 3 library to its binary package. -- \ “He that loveth father or mother more than me is not worthy of | `\ me: and he that loveth son or daughter more than me is not | _o__) worthy of me.” —Jesus, as quoted in Matthew 10:37 | Ben Finney