Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8811 > unrolled thread
| Started by | Sebastian Humenda <shumenda@gmx.de> |
|---|---|
| First post | 2016-08-25 07:30 +0200 |
| Last post | 2016-08-31 20:30 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.debian.maint.python
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
| From | Sebastian Humenda <shumenda@gmx.de> |
|---|---|
| Date | 2016-08-25 07:30 +0200 |
| Subject | Building a module and an application package from one source |
| Message-ID | <s9VoJ-57C-1@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Hi, I want to repackage GladTeX (it used to be Perl and has been rewritten in Python). 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 there an easy way to tell pybuild to distribute different parts of the build output to different packages? I have uploaded a snapshot of the package to <http://crustulus.de/pkg.txz>. The old version was maintained within the pkg-a11y domain, but it does not belong there. Since I'm using gbp, I didn't want to fiddle around with svn-buildpackage yet (used by PAPT). Thanks Sebastian
[toc] | [next] | [standalone]
| From | Ben Finney <ben+debian@benfinney.id.au> |
|---|---|
| Date | 2016-08-25 07:50 +0200 |
| Message-ID | <s9VI5-5dT-1@gated-at.bofh.it> |
| In reply to | #8811 |
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
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Humenda <shumenda@gmx.de> |
|---|---|
| Date | 2016-08-25 12:20 +0200 |
| Message-ID | <s9ZVo-86m-21@gated-at.bofh.it> |
| In reply to | #8812 |
[Multipart message — attachments visible in raw view] — view raw
Hi Ben Finney schrieb am 25.08.2016, 15:41 +1000: >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. How would I do that? dh_auto_install moves the script too debian/gladtex/usr/bin along with the module (to */usr/lib). I now set the PYBUILD_NAME to the name of the library package (python3-gleetex) and move the file manually after dh_auto_install. Looks hacky though. I've uploaded the package to ssh://git.debian.org/git/python-modules/packages/gladtex.git. It would be great if somebody could have a look. Thanks Sebastian -- Web: http://www.crustulus.de (English|Deutsch) | Blog: http://www.crustulus.de/blog FreeDict: Free multilingual dictionaries - http://www.freedict.org Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
[toc] | [prev] | [next] | [standalone]
| From | Sebastian Humenda <shumenda@gmx.de> |
|---|---|
| Date | 2016-08-31 20:30 +0200 |
| Message-ID | <sciqR-5Th-9@gated-at.bofh.it> |
| In reply to | #8813 |
[Multipart message — attachments visible in raw view] — view raw
Hi Sebastian Humenda schrieb am 25.08.2016, 12:10 +0200: >Ben Finney schrieb am 25.08.2016, 15:41 +1000: [...] >>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. >How would I do that? dh_auto_install moves the script too debian/gladtex/usr/bin >along with the module (to */usr/lib). I now set the PYBUILD_NAME to the name of the library package >(python3-gleetex) and move the file manually after dh_auto_install. Looks hacky >though. >I've uploaded the package to ssh://git.debian.org/git/python-modules/packages/gladtex.git. I would ask whether you please could have a look at the package, so that I can finish the packaging. Thanks Sebastian -- Web: http://www.crustulus.de (English|Deutsch) | Blog: http://www.crustulus.de/blog FreeDict: Free multilingual dictionaries - http://www.freedict.org Freies Latein-Deutsch-Wörterbuch: http://www.crustulus.de/freedict.de.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.python
csiph-web