Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #14923
| Path | csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Stefano Rivera <stefanor@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: can one change the path of generated entry point console_scripts |
| Date | Wed, 15 Feb 2023 17:40:02 +0100 |
| Message-ID | <FZsZ4-66P7-29@gated-at.bofh.it> (permalink) |
| References | <FYRwu-5FJd-3@gated-at.bofh.it> |
| X-Original-To | Philippe Cerfon <philcerf@gmail.com> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed Feb 15 16:37:55 2023 |
| Old-Return-Path | <stefano@rivera.za.net> |
| X-Amavis-Spam-Status | No, score=-106.863 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.248, LDO_WHITELIST=-5, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -4.6 |
| Mail-Followup-To | Philippe Cerfon <philcerf@gmail.com>, debian-python@lists.debian.org |
| X-Gpg-Public-Key | http://www.rivera.za.net/stefano.gpg |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| User-Agent | NeoMutt/20201127 |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/20822 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/20230215163734.73z6rkgr2w3xmn6j@satie.tumbleweed.org.za |
| Approved | robomod@news.nic.it |
| Lines | 26 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | debian-python@lists.debian.org |
| X-Original-Date | Wed, 15 Feb 2023 16:37:34 +0000 |
| X-Original-Message-ID | <20230215163734.73z6rkgr2w3xmn6j@satie.tumbleweed.org.za> |
| X-Original-References | <CAN+za=MAPZSo3GXrMMVKG=X3Smo_SGM0VDCWT2pLyQdjnObJwg@mail.gmail.com> |
| Xref | csiph.com linux.debian.maint.python:14923 |
Show key headers only | View raw
Hi Philippe (2023.02.14_00:13:08_+0000) > When I use dh-python to build a package that contains a pyproject.toml > and uses python3-setuptools for building like e.g. described here > https://setuptools.pypa.io/en/latest/userguide/entry_point.html > > and I use that entry point feature to have a script auto-generated > that calls my main():[project.scripts] > somescript = "package:main" > > is it possible to change the path were that script is finally put it > the package (i.e. not ./usr/bin/)? Just move it somewhere else later in the build? e.g. after dh_install. /usr/bin is where user-executable scripts should go, unless they belong in /usr/sbin or /usr/games. Internal scripts (that will be executed by the full path name) can live in /usr/share/<packagename> or similar. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
can one change the path of generated entry point console_scripts Philippe Cerfon <philcerf@gmail.com> - 2023-02-14 01:40 +0100
Re: can one change the path of generated entry point console_scripts Stefano Rivera <stefanor@debian.org> - 2023-02-15 17:40 +0100
Re: can one change the path of generated entry point console_scripts Philippe Cerfon <philcerf@gmail.com> - 2023-02-17 03:10 +0100
Re: can one change the path of generated entry point console_scripts Andrey Rakhmatullin <wrar@wrar.name> - 2023-02-17 10:00 +0100
csiph-web