Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14753
| From | Andrey Rahmatullin <wrar@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: How do you create entry-points for Python applications? |
| Date | 2022-12-19 14:40 +0100 |
| Message-ID | <FEox3-bJ67-3@gated-at.bofh.it> (permalink) |
| References | <FE7mx-byMF-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Sun, Dec 18, 2022 at 07:18:44PM +0000, c.buhtz@posteo.jp wrote: > Hello, > a python application isn't a binary but a script. So to invoke such an > application there need to be a shell script somewhere in PATH that invoke > that script via python3 interpreter. Imagine an application with a GUI (qt, > tikinter, gtk, ...). > > On the upstream site modern python projects using pyproject.toml (only), > some use setup.cfg. > There you can define "entry points" and the "pip" installer does generate a > shell script based on that information and place it in PATH. > That is a nice mechanism when installing via pip. > > On your site as distro maintainers. How do you take care of then when > creating deb files? I feel like this question is not really specific to pyproject.toml etc.: entry points are an old concept and we have a lot of packages shipping setuptools entry points (grep your /usr/bin for "load_entry_point"). For these packages the executable is indeed created automatically by the packaging tools, and I would expect the same to happen for any other supported setuptools replacement. -- WBR, wRAR
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How do you create entry-points for Python applications? c.buhtz@posteo.jp - 2022-12-18 20:20 +0100
Re: How do you create entry-points for Python applications? Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2022-12-18 23:10 +0100
Re: How do you create entry-points for Python applications? c.buhtz@posteo.jp - 2022-12-19 06:20 +0100
Re: How do you create entry-points for Python applications? Scott Kitterman <debian@kitterman.com> - 2022-12-19 06:30 +0100
Re: How do you create entry-points for Python applications? c.buhtz@posteo.jp - 2022-12-19 07:30 +0100
Re: How do you create entry-points for Python applications? Scott Kitterman <debian@kitterman.com> - 2022-12-19 08:00 +0100
Re: How do you create entry-points for Python applications? Danial Behzadi دانیال بهزادی <dani.behzi@ubuntu.com> - 2022-12-19 14:10 +0100
Re: How do you create entry-points for Python applications? Stuart Prescott <stuart@debian.org> - 2022-12-20 01:10 +0100
Re: How do you create entry-points for Python applications? Andrey Rahmatullin <wrar@debian.org> - 2022-12-19 14:40 +0100
csiph-web