Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #7546
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Barry Warsaw <barry@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Python/LibraryStyleGuide: Executables and library packages dokonana przez BarryWarsaw |
| Date | Thu, 08 Oct 2015 00:10:01 +0200 |
| Message-ID | <qh54l-11T-13@gated-at.bofh.it> (permalink) |
| References | <qh4Bk-eo-17@gated-at.bofh.it> <qh4Bk-eo-15@gated-at.bofh.it> |
| X-Original-To | debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Oct 7 22:08:55 2015 |
| Old-Return-Path | <barry@debian.org> |
| X-Amavis-Spam-Status | No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5 |
| Organization | The Organization of Unorganized Woozalists |
| X-Mailer | Claws Mail 3.12.0 (GTK+ 2.24.28; x86_64-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; boundary="Sig_/Yo_bzT5buGaomLJSd27qdou"; protocol="application/pgp-signature" |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/12858 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20151007180835.31cc8192@limelight.wooz.org |
| Approved | robomod@news.nic.it |
| Lines | 92 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Wed, 7 Oct 2015 18:08:35 -0400 |
| X-Original-Message-ID | <20151007180835.31cc8192@limelight.wooz.org> |
| X-Original-References | <20151007200458.10642.47153@wilder.debian.org> <20151007213428.GD3938@p1otr.com> |
| Xref | csiph.com linux.debian.maint.python:7546 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Thanks for the feedback. I did rewrite this a little bit, so hopefully it's clearer. I left some of the text in there because at least to me it reads better and provides some rationale for why the rules are there. But hey, it's a wiki so please feel free to make further improvements! Cheers, -Barry On Oct 07, 2015, at 11:34 PM, Piotr Ożarowski wrote: >[Debian Wiki, 2015-10-07] >> https://wiki.debian.org/Python/LibraryStyleGuide?action=diff&rev1=64&rev2=65 >> >> >> == Gotchas == >> >> + === Executables and library packages === >> + >> + Let's say you have a Python package which results in Python 2 and 3 libraries, and a Python 3 executable. What is the best practices for naming and organizing your binary packages? >> + >> + Clearly you want to have: >> + >> + * python-foo -- the Python 2 library >> + * python3-foo -- the Python 3 library > > * foo -- for the executable (and possible additional dependencies that library doesn't need) > >maybe extent it to: > > * python-foo -- the Python 2 library (and Python 2.X scripts if they're Python 2.X specific) > * python3-foo -- the Python 3 library (and Python 3.X scripts if they're Python 3.X specific) > >> + >> + but where should the `/usr/bin/foo` script go? You could put it in `python3-foo` but you '''CANNOT''' put it in `python-foo` or for that matter any binary package that starts with the `python-` prefix. `dh_python3` refuses to rewrite shebang lines for any executable in a binary package that starts with "python-" or "pypy-". This means that something like `python-foo-cli` or `python-foo-bin` is unacceptable. > >I'd remove this part - it's not dh_python3 specific (dh_python2 and >dh_pypy does similar things) and I don't think such corner case should >be in style guide > >> + >> + Here are some recommendations. We do not have a standard (though maybe we should): >> + >> + * `foo` - this is nice if it parallels the /usr/bin/foo name but it might collide with existing packages, and some people don't like to make such a claim on an unadorned top level package >> + * `python3-foo-cli` or `python3-foo-bin` - not as nicely discoverable, but `command-not-found` can help, and dh_python3 will work > >if someone creates python3-foo-cli binary just to ship /usr/bin/foo it >might as well be foo (if there are no /usr/bin/foo name collisions, >binary package name should be safe as well) so I'd remove it
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar
Python/LibraryStyleGuide: Executables and library packages dokonana przez BarryWarsaw Piotr Ożarowski <piotr@debian.org> - 2015-10-07 23:40 +0200 Re: Python/LibraryStyleGuide: Executables and library packages dokonana przez BarryWarsaw Barry Warsaw <barry@debian.org> - 2015-10-08 00:10 +0200
csiph-web