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


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

Re: Building a module and an application package from one source

From Ben Finney <ben+debian@benfinney.id.au>
Newsgroups linux.debian.maint.python
Subject Re: Building a module and an application package from one source
Date 2016-08-25 07:50 +0200
Message-ID <s9VI5-5dT-1@gated-at.bofh.it> (permalink)
References <s9VoJ-57C-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Sebastian Humenda <shumenda@gmx.de> 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

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


Thread

Building a module and an application package from one source Sebastian Humenda <shumenda@gmx.de> - 2016-08-25 07:30 +0200
  Re: Building a module and an application package from one source Ben Finney <ben+debian@benfinney.id.au> - 2016-08-25 07:50 +0200
    Re: Building a module and an application package from one source Sebastian Humenda <shumenda@gmx.de> - 2016-08-25 12:20 +0200
      Re: Building a module and an application package from one source Sebastian Humenda <shumenda@gmx.de> - 2016-08-31 20:30 +0200

csiph-web