Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #17472

Re: Question regarding binaries in /usr/lib/python3/dist-packages/

From Andrey Rakhmatullin <wrar@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Question regarding binaries in /usr/lib/python3/dist-packages/
Date 2026-04-23 21:00 +0200
Message-ID <MN7rj-hrCl-1@gated-at.bofh.it> (permalink)
References <MN6Yh-hrqS-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Apr 23, 2026 at 11:09:57AM -0700, Soren Stoutner wrote:
>X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/
>PyInstaller/bootloader/Linux-64bit-intel/run]
>X: python3-pyinstaller: executable-in-usr-lib [usr/lib/python3/dist-packages/
>PyInstaller/bootloader/Linux-64bit-intel/run_d]

>I do not know how easy it would be to relocate these files.  Before reaching
>out to the Pyinstaller upstream to see of what it would take to relocate these
>files, I wanted to ask the Debian Python Team how this is generally handled
>with Python packages.  

I don't think there is any need to "generally handle this", to be honest.

> Are executables typically relocated to /usr/libexec/?

Executables are typically generated in /usr/bin directly. Just as 
executable helpers suitable for libexec are rare in general and even more 
rare in libraries, they must be very rare in Python library packages so I 
wouldn't be surprised if this situation have never occured in Debian 
packages at all.

On the other hand, shipping data of various kinds in dist-packages/ is 
relatively popular and usually tolerated. This seems to be similar to it, 
and to be honest I would make sure these executables are meant to be 
executed at all, as opposed to being included into the pyinstaller output 
(see "bootloader"), before e.g. contacting the upstream (or the DPT, but 
that's too late).


-- 
WBR, wRAR

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Question regarding binaries in  /usr/lib/python3/dist-packages/ Soren Stoutner <soren@debian.org> - 2026-04-23 20:30 +0200
  Re: Question regarding binaries in  /usr/lib/python3/dist-packages/ Andrey Rakhmatullin <wrar@debian.org> - 2026-04-23 21:00 +0200
    Re: Question regarding binaries in  /usr/lib/python3/dist-packages/ Soren Stoutner <soren@debian.org> - 2026-04-23 21:10 +0200

csiph-web