Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Philippe Cerfon Newsgroups: linux.debian.maint.python Subject: can one change the path of generated entry point console_scripts Date: Tue, 14 Feb 2023 01:40:02 +0100 Message-ID: X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Feb 14 00:30:12 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-1.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MONOTONE_WORDS_2_15=1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-pf1-x436.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -5.5 X-Gm-Message-State: AO0yUKVWurdCBwSnxSsw1x3rVG7Mrbxt/cnxybCpPaO9OhdzC1PfxqJl MkeS/yUZeMnUK7iEKzt7UGONGd8ZJa3a3DqQxkEYmJ9u X-Google-SMTP-Source: AK7set/SEgDPG3EqrC3pZntztWHUR0KG1C9qhSq8LONyQDGm4w9cHmg5xduoUa7cNhVtz1w4I6fJyn9L0mFNUGZKazw= X-Received: by 2002:aa7:9422:0:b0:5a8:b52d:5a5a with SMTP id y2-20020aa79422000000b005a8b52d5a5amr67885pfo.24.1676333599000; Mon, 13 Feb 2023 16:13:19 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Mailing-List: archive/latest/20818 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAN+za=MAPZSo3GXrMMVKG=X3Smo_SGM0VDCWT2pLyQdjnObJwg@mail.gmail.com Approved: robomod@news.nic.it Lines: 20 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 14 Feb 2023 01:13:08 +0100 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.python:14919 Hey. 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/)? I tried to look it up in other Debian source packages, but all that I checked and which contain Python scripts in non-/usr/bin locations simply put a real file there, and not such a auto-generated one. Thanks, Philippe.